Control MCServer via Cron Jobs
#7
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:

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.
Reply
Thanks given by:


Messages In This Thread
Control MCServer via Cron Jobs - by Gorilla - 06-24-2014, 06:04 AM
RE: Control MCServer via Cron Jobs - by tigerw - 06-24-2014, 06:21 AM
RE: Control MCServer via Cron Jobs - by worktycho - 06-24-2014, 06:39 AM
RE: Control MCServer via Cron Jobs - by Gorilla - 06-24-2014, 06:48 AM
RE: Control MCServer via Cron Jobs - by NiLSPACE - 06-24-2014, 06:52 AM
RE: Control MCServer via Cron Jobs - by bearbin - 06-24-2014, 04:34 PM
RE: Control MCServer via Cron Jobs - by Gorilla - 06-25-2014, 03:04 AM
RE: Control MCServer via Cron Jobs - by bearbin - 06-25-2014, 03:07 AM
RE: Control MCServer via Cron Jobs - by Gorilla - 06-25-2014, 07:25 AM
RE: Control MCServer via Cron Jobs - by bearbin - 06-26-2014, 04:18 AM
RE: Control MCServer via Cron Jobs - by Gorilla - 06-26-2014, 06:08 PM
RE: Control MCServer via Cron Jobs - by bearbin - 06-27-2014, 04:45 AM



Users browsing this thread: 1 Guest(s)