Morten5t
04-03-2008, 22:14
Hey.
Im having little trouble with Cron... since im using Cpanel to do it (since doing thru SSH /shell access is causing one problem after another)
though this was not possible as i get problems back... so I contacted my webserver support (maybe stupid place... but they had some info)
I was told that wouldnt work by just giving the cron path with the command.. wouldnt work...
(I used "teamspeak2-server_startscript restart")
he told me that he had long time ago found a way around by making a PHP file with the script "./teamspeak2-server_startscript restart" would be executed by the cron executes the PHP file... though he was not able to tell me how...
he refered to look here where I didnt have much help finding a topic helping me...
If any know how to set a code up in PHP that will execute the server to restart would be much appreciated :)
Im having little trouble with Cron... since im using Cpanel to do it (since doing thru SSH /shell access is causing one problem after another)
though this was not possible as i get problems back... so I contacted my webserver support (maybe stupid place... but they had some info)
I was told that wouldnt work by just giving the cron path with the command.. wouldnt work...
(I used "teamspeak2-server_startscript restart")
he told me that he had long time ago found a way around by making a PHP file with the script "./teamspeak2-server_startscript restart" would be executed by the cron executes the PHP file... though he was not able to tell me how...
he refered to look here where I didnt have much help finding a topic helping me...
If any know how to set a code up in PHP that will execute the server to restart would be much appreciated :)