06-25-2014, 03:04 AM
Thanks for the help, everyone.
I couldn't get Bearbin's RCON client to work in the setup, so I went with a modification of the screen command proposed by worktycho.
To to start the server:
To stop the server:
Obviously you can also send other console commands, so for example:
I've only tested this on my Raspberry Pi, but it's all running nicely under Cron control. Hopefully it's of help to someone else.
I couldn't get Bearbin's RCON client to work in the setup, so I went with a modification of the screen command proposed by worktycho.
To to start the server:
Code:
screen -d -m -S MCServer /home/minecraft/MCServer/MCServer
To stop the server:
Code:
screen -S MCServer -X eval 'stuff stop\015'
Obviously you can also send other console commands, so for example:
Code:
screen -S MCServer -X eval 'stuff restart\015'
I've only tested this on my Raspberry Pi, but it's all running nicely under Cron control. Hopefully it's of help to someone else.