PDA

View Full Version : cron


Adam
07-09-2003, 04:01 PM
How do I set a script to run every 5 minutes of everyday?

CRON has always had me confused

DirectAdmin Sales
07-09-2003, 05:15 PM
Click the help button in the control panel, it will take you here:

http://www.site-helper.com/misc.html#cron

Does that help?

Mark

DirectAdmin Support
07-09-2003, 05:18 PM
Hello,

If you want a script to run every 5 minutes, it will be for every hour, of every day, of every month, so, all values will be * execept the minute. If you want every 5 of something, it would be all minutes, every 5, or */5

mintue: */5
hour: *
day of month: *
month: *
day of week: *
command: your script

Cron just matches all time values with the current time. If they all match, it will run it.

John

Adam
07-09-2003, 05:51 PM
Error Creating Cron Job



Details
The times must formatted like one of the following (eg. hour, no spaces):
*
1
1-5
0-23/2
1,2,3,13,22
0-4,8-12

DirectAdmin Support
07-09-2003, 06:02 PM
Ok,

I think it's a bit too agressive on the form checking, use

minute: 0,5,10,15,20,25,30,35,40,45,50,55

should work for now. We'll get */5 fixed for 1.14

John

Adam
07-09-2003, 06:07 PM
TY :)