I have two cronjobs, each using a "*/5 * * * *" schedule.
What I really want is to execute them every ten minutes, but the second one 5 minutes later than the first one.
Is there an elegant way to do this?
I have two cronjobs, each using a "*/5 * * * *" schedule.
What I really want is to execute them every ten minutes, but the second one 5 minutes later than the first one.
Is there an elegant way to do this?
Have your first cron task call at
, which allows you to schedule a one-off execution at a specific time.
How about:
*/10 * * * * firstcommand
5-55/10 * * * * secondcommand
This works with at least one cron daemon---Dillon's cron, which I'm the current dev of. Whether it works on Vixie cron, or fcron, or bcron, or whichever cron daemon you happen to be using, I can't say.