Results 1 to 7 of 7
Thread: how to perform a crone job
-
03-22-2004, 08:35 AM #1Web Hosting Master
- Join Date
- Mar 2004
- Posts
- 1,303
how to perform a crone job
Hi,
I have never used this in the control panel. I would like to make a schedule to run a php file every few hours, says 5hours.
What are the commands to execute the file?
Let the file be test.php located in a directory called /schedule
Thank you!
-
03-22-2004, 08:49 AM #2Newbie
- Join Date
- Mar 2004
- Posts
- 9
what control panel are you using, most have an area to enter the details but they ussually differ from each other slightly
-
03-22-2004, 09:08 AM #3Web Hosting Master
- Join Date
- Mar 2004
- Posts
- 1,303
I think it's called
"Cpanel Version 9.1.0-STABLE 93"
-
03-22-2004, 10:11 AM #4Retired Moderator
- Join Date
- Apr 2003
- Location
- London, UK
- Posts
- 4,721
Go into Cron Jobs > Advanced
Under the option to add an email address the first row of boxes (minute, hour, day, month etc) are for how often you want the cron to run, to run every 5 hours set them up like so:
[*] [*/5][*][*][*]
So the */5 is in the "hours" field (dont add the brackets, that's just to indicate each box), then in the command box to the side:
GET http://yourdomain.com/schedule/test.php > /dev/nullHyperconfused (™)
-
03-22-2004, 10:19 AM #5Web Hosting Master
- Join Date
- Mar 2004
- Posts
- 1,303
Thank you Loon!
It works now
-
03-23-2004, 01:51 AM #6Web Hosting Master
- Join Date
- Feb 2004
- Posts
- 772
Hi,
I think i m late but in future you can have a look into this following CPANEL ONLINE DOCUMENTATION regarding setting time for your files execution ( Cron Job Settings ).
http://www.vermontwebhost.com/cpanel-help/cronJobs.htm
It may resolve the problem.
Regards,
Bright
-
03-23-2004, 06:21 AM #7Web Hosting Master
- Join Date
- Mar 2004
- Posts
- 1,303
It's never too late. I've learned more from your link too
Thank you