I've been working on a script for my Minecraft servers for a auto backup.
Well, when the server starts... It issues the following command...
screen -dmS BUKKIT1 /home/minecraft/BUKKIT1/minecraft.run
THEN... I have to attach the screen and detach it to make the rest of the script work... and I need a way around it, since this is automated, and I don't always tend to the machine...
This is the first command the backup script issues to the screen session:
screen -drS BUKKIT1 -X stuff "say SERVER BACKUP STARTING. Server going read only ..."`echo -ne '\015'`
What that does, is that it posts a message to the minecraft multiplayer saying "SERVER BACKUP STARTING. Server going read only ..."
But if I attach the screen session, then ^a d (CTRL+a d) it works fine.
I've done some searching, but I'm afraid I might not have been searching the correct terms, since I can't find a fix. There may not be one as well, but I figured someone has figured it out by now.
The server is running Arch Linux - Rolling Release, Kernel 2.6.37. Screen version Screen version 4.00.03 (FAU) 23-Oct-06.
Any help with this would be great.