On Thu, 2004-12-23 at 20:02 -0600, Lance Hoffmeyer wrote: > Hello, > > How do I get crontab to run a process every 5 minutes? > Currently, it is setup as: > 5,10,15,20,25,30,35,40,45,50,55 * * * > > Surely, there is a more elegant approach?
Yes, yes there is. $ man crontab SEE ALSO crontab(5), cron(8) $ man 5 crontab Step values can be used in conjunction with ranges. Following a range with ``/<number>'' specifies skips of the number's value through the range. For example, ``0-23/2'' can be used in the hours field to specify command execution every other hour (the alternative in the V7 standard is ``0,2,4,6,8,10,12,14,16,18,20,22''). Steps are also permitted after an asterisk, so if you want to say ``every two hours'', just use ``*/2''. -- ----------------------------------------------------------------- Ron Johnson, Jr. Jefferson, LA USA PGP Key ID 8834C06B I prefer encrypted mail. "He was about as useful in a crisis as a sheep." Dorothy Eden
signature.asc
Description: This is a digitally signed message part