cron job is not working

Status
Not open for further replies.

charitymadurai

New Member
Messages
3
Reaction score
0
Points
0
hi

i want run test2.php for every 5 mins,test2.php file in publich_html folder. i set cron coding at Advanced (Unix Style) page iin cpanel.



my coding is

5 * * * * /usr/bin/php -q /home/test23/public_html/test2.php

what wrong in my coding
 

nowotny

New Member
Messages
11
Reaction score
0
Points
0
i want run test2.php for every 5 mins,test2.php file in publich_html folder. i set cron coding at Advanced (Unix Style) page iin cpanel.

my coding is

5 * * * * /usr/bin/php -q /home/test23/public_html/test2.php

what wrong in my coding
First of all, you are only allowed one cronjob every 5 minutes on free servers... you may have your account suspended for more...

Your syntax will make it run the test2.php at each_hour:05 minutes... For "every 5 minutes" you need something like this: */5...

This is all moot anyway if you're on Lotus server cause the cron is not working at the moment: http://forums.x10hosting.com/free-hosting/99206-cron-lotus.html

BTW, you should just use the Standard setting page... it's much easier and does have "every 5 minutes" setting...
 
Status
Not open for further replies.
Top