How Do I Schedule Cron to Run at Specific intervals?

Posted by Russ on Server Fault See other posts from Server Fault or by Russ
Published on 2010-05-21T01:33:46Z Indexed on 2010/05/21 1:40 UTC
Read the original article Hit count: 295

Filed under:
|

I have 6 scripts that each take about 20 minutes to run, I want to schedule cron to run the first 3 at 00, 20, and 40 on the odd hours and the second 3 at the same intervals on the even hours. How can I tell cron to do this?

is it something like this:

0 2,4,6,8,10,12,14,16,18,20,22,24 * * * root Script1
20 2,4,6,8,10,12,14,16,18,20,22,24 * * * root Script2
40 2,4,6,8,10,12,14,16,18,20,22,24 * * * root Script3
0 1,3,5,7,9,11,13,17,19,21,23 * * * root Script4
20 1,3,5,7,9,11,13,17,19,21,23 * * * root Script5
40 1,3,5,7,9,11,13,17,19,21,23 * * * root Script6

© Server Fault or respective owner

Related posts about cron

Related posts about crontab