cron

Adam

Verified User
Joined
Jun 16, 2003
Messages
11
How do I set a script to run every 5 minutes of everyday?

CRON has always had me confused
 
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
 
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
 
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
 
Back
Top