Cron Jobs Refuse to Work

Status
Not open for further replies.

devasia100022

New Member
Messages
2
Reaction score
0
Points
0
Hello,

My server name is "starka" with my subdomain being "http://devasiamanuel.x10.mx/" and I have been trying continually for a couple of weeks to try and get Cron Jobs to work, without sucsess.

To test the Cron Job functionality, I had created a simple PHP script which writes data to a file. The script is placed in the directory "/home/devasia/public_html/cron-test.php". I have absolutely no doubts that the script works correctly.

The command I had typed into the Cron Job menu is: "/usr/bin/php -f /home/devasia/public_html/cron-test.php" and have set it to run every 5 minutes.

Furthermore, I have not recieved any emails suggesting that the Cron Job ran sucsessfully or has failes.

Please advice me on how I can fix this problem.

Thanks,
Devasia
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Script works, looks like crond wasn't running on your server. I started the service check back in a few minutes to see if it runs correctly.
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Hello,

Just as an update this is now working.

Code:
Sep 17 05:25:02 starka crond[19485]: (devasia) CMD (/usr/local/bin/php -f /home/devasia/www/cron-test.php)
Sep 17 05:30:01 starka crond[27852]: (devasia) CMD (/usr/local/bin/php -f /home/devasia/www/cron-test.php)
Sep 17 05:35:01 starka crond[32471]: (devasia) CMD (/usr/local/bin/php -f /home/devasia/www/cron-test.php)
Sep 17 05:40:02 starka crond[2085]: (devasia) CMD (/usr/local/bin/php -f /home/devasia/www/cron-test.php)
Sep 17 05:45:01 starka crond[3349]: (devasia) CMD (/usr/local/bin/php -f /home/devasia/www/cron-test.php)
Sep 17 05:50:02 starka crond[4510]: (devasia) CMD (/usr/local/bin/php -f /home/devasia/www/cron-test.php)

Code:
root@starka [~]# cat /home/devasia/www/cron-test.txt
Cron Run at Fri, 17 Sep 2010 05:23:27 -0400 by root
Cron Run at Fri, 17 Sep 2010 05:25:02 -0400 by devasia
Cron Run at Fri, 17 Sep 2010 05:30:04 -0400 by devasia
Cron Run at Fri, 17 Sep 2010 05:35:01 -0400 by devasia
Cron Run at Fri, 17 Sep 2010 05:40:02 -0400 by devasia
Cron Run at Fri, 17 Sep 2010 05:45:01 -0400 by devasia
Cron Run at Fri, 17 Sep 2010 05:50:02 -0400 by devasia
 
Status
Not open for further replies.
Top