Shivski Posted January 14, 2009 Posted January 14, 2009 Hi Im new to this site, had a look around added a few mods to my game and lvoed it so far. Just wondering if I can grab some help on my crons if possible? I've been concentrating on the modding side to get a backbone to my game and now need to get the crons working, but unfortunatly, it seems my crons dont work and im not totally sure why. Im using cpanel currently whilst I work on the bones of the game. My crons are 5 **** - root /home/servername/public_html/foldername/cron_fivemi ns.php?code=86bf0bc45a0140e1611a218eb6299daf But to my email, it returns with /bin/sh: root: command not found But If I use 5 **** root /home/servername/public_html/foldername/cron_fiv emins.php?code=86bf0bc45a0140e1611a218eb6299daf it doesn't return with anything at all. But the cron doesn't do anything within 5 mins >> Also with my cron_minute.php which is the same, it also returns when i enter /home/servername/public_html/foldername/cron_minute.php?code=86bf0bc45a0140e1611a218eb6299daf Is the cron not set correctly (html address etc...) or is a problem within the cron_ php files? And if so, if I post them, can someone look them over for me? Many thanks in advance Shiv Quote
Lithium Posted January 14, 2009 Posted January 14, 2009 Re: Cron Errors basedir/path/to/cron/file/cron.php?code=string placing this on the input and setting the time ought to be more than enough 0/5 * * * * <- five minutes Quote
Shivski Posted January 14, 2009 Author Posted January 14, 2009 Re: Cron Errors Hi, thanks for the quick reply. So are you saying that my path is correct? When you write 0/5. Is that what I should put in? Wasn't sure if it accepted slashes. Sorry for the n00bish questions, but Im new to crons and want to get them up working as soon as I can lol. Shiv Quote
gurpreet Posted January 14, 2009 Posted January 14, 2009 Re: Cron Errors Go to cron Jobs and click advanced. Then where it says enter the adress of the cron, type Curl (then the link goes here, without the )'s of course.) Quote
Lithium Posted January 14, 2009 Posted January 14, 2009 Re: Cron Errors Go to cron Jobs and click advanced. Then where it says enter the adress of the cron, type Curl (then the link goes here, without the )'s of course.) curl is not needed ;) And yes place the 0/5 with the slash :) Quote
Shivski Posted January 14, 2009 Author Posted January 14, 2009 Re: Cron Errors When I tried the Curl command, it came back with this, /bin/sh: Curl: command not found Just about to try without :-D Quote
Shivski Posted January 14, 2009 Author Posted January 14, 2009 Re: Cron Errors Nope, now it includes the full address. Does the 'code' have to be after the .php address? Could this be confusing it? Quote
Lithium Posted January 14, 2009 Posted January 14, 2009 Re: Cron Errors yes, code should be there Quote
Shivski Posted January 14, 2009 Author Posted January 14, 2009 Re: Cron Errors The issue is now resolved. Thanks to dazza for the extra support too. I instead put curl www.mydomain.com/folder/cron_day.php?code=BIGLONGCODE HERE instead of the directory details and it worked, Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.