Cron job Promblem

Status
Not open for further replies.

wdbennett6816

New Member
Messages
3
Reaction score
0
Points
0
Hey man i am trying to set up a game i am using a cronjob i have set to to every ten minutes ( in the terms and conditions ) but it wont work do you have any advise

this is the code it is for a game called aatraders

*/10 * * * * /usr/bin/wget --tries=1 --timeout=10 --post-data 'admin_password=My pass &game_number=0' -q -o /dev/null -O /dev/null http://rdb46home.x10.bz/aat/scheduler.php

the game is meant to tick along for 600 seconds and then update the rating and stuff. But it ticks over and does nothing , i can run the scheduler manually and it work till i try's to engage the cron job again and then it just stops. And it will not let me put the * --->( */10 * * * *) at the start of it i dont know f it is a syntax error or what any help would be kind thenks
 
Last edited:

dlukin

New Member
Messages
427
Reaction score
25
Points
0
Assuming it is a PHP script, try using a command line like:

Code:
/usr/bin/php  /home/abc/public_html/mycronjob.php  >>/home/abc/public_html/logthecron.txt  2>&1

where abc is your cPanel username. This should run any .php script and also send all output, including errors to the log file, so you can see if something is really messed up.

Can you tell what happens if you call the script from the Web? (if it is accessible from the web)
 

wdbennett6816

New Member
Messages
3
Reaction score
0
Points
0
this is the code it is for a game called aatraders

*/10 * * * * /usr/bin/wget --tries=1 --timeout=10 --post-data 'admin_password=My pass &game_number=0' -q -o /dev/null -O /dev/null http://rdb46home.x10.bz/aat/scheduler.php

the game is meant to tick along for 600 seconds and then update the rating and stuff. But it ticks over and does nothing , i can run the scheduler manually and it work till i try's to engage the cron job again and then it just stops. And it will not let me put the * --->( */10 * * * *) at the start of it i dont know f it is a syntax error or what any help would be kind thenks
 
Status
Not open for further replies.
Top