Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to run cron jobs during the following times:

1st job: 1PM 4PM 7PM etc..

2nd job: 1:15PM 4:15PM 7:15PM etc..

3nd job: 1:30PM 4:30PM 7:30PM etc..

As you can see each job run every 3 hours but each job needs to have 15 minutes "break time" before running to next job.

share|improve this question
0 */3 * * * (blah)
15 */3 * * * (blah2)
30 */3 * * * (blah3)

Sounds like you're setting yourself up for a race condition though. What if something runs more than 15 minutes?

share|improve this answer
more than 15 minutes is unlikely in what I'm doing but if it happens it won't do damage. – IMB Jul 16 '13 at 14:46
Additional question: how about if there are more jobs that starts say 2PM or 2:15 or 2:30 or 2:45, etc? – IMB Jul 16 '13 at 14:48
@imb As long as they don't hit the same stuff, it shouldn't matter. If it's all the same job, you'll probably want to explicitly state the hours (like Ary did it). – Satanicpuppy Jul 16 '13 at 15:26

I think this is the right way. Try with this:

0 1,4,7,10,13,16,19,22 * * * /path/to/
15 1,4,7,10,13,16,19,22 * * * /path/to/ 
30 1,4,7,10,13,16,19,22 * * * /path/to/
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.