The following warnings occurred:
Warning [2] Trying to access array offset on null - Line: 198 - File: inc/plugins/google_seo.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo.php 198 errorHandler->error_callback
/inc/plugins/google_seo/redirect.php 131 google_seo_tid
/inc/class_plugins.php 142 google_seo_redirect_hook
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Undefined property: DB_MySQLi::$google_seo_query_limit - Line: 232 - File: inc/plugins/google_seo.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo.php 232 errorHandler->error_callback
/inc/plugins/google_seo/redirect.php 131 google_seo_tid
/inc/class_plugins.php 142 google_seo_redirect_hook
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Decrement on type null has no effect, this will change in the next major version of PHP - Line: 232 - File: inc/plugins/google_seo.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo.php 232 errorHandler->error_callback
/inc/plugins/google_seo/redirect.php 131 google_seo_tid
/inc/class_plugins.php 142 google_seo_redirect_hook
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Undefined array key 1 - Line: 287 - File: inc/plugins/google_seo/redirect.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo/redirect.php 287 errorHandler->error_callback
/inc/class_plugins.php 142 google_seo_redirect_hook
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Undefined array key 1 - Line: 288 - File: inc/plugins/google_seo/redirect.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo/redirect.php 288 errorHandler->error_callback
/inc/class_plugins.php 142 google_seo_redirect_hook
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Undefined array key "" - Line: 301 - File: inc/plugins/google_seo/redirect.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo/redirect.php 301 errorHandler->error_callback
/inc/class_plugins.php 142 google_seo_redirect_hook
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Undefined array key "" - Line: 308 - File: inc/plugins/google_seo/redirect.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo/redirect.php 308 errorHandler->error_callback
/inc/class_plugins.php 142 google_seo_redirect_hook
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Undefined variable $change - Line: 345 - File: inc/plugins/google_seo/redirect.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo/redirect.php 345 errorHandler->error_callback
/inc/class_plugins.php 142 google_seo_redirect_hook
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once




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)