Define 2 cron jobs that run every 10 minutes but do not work on top of each other

advertisements

I can setup a cron every ten minutes like this:

*/10 * * * *

But I want to setup 2 cron jobs that won't run at the same time.

Is it possible to make one run every 10 minutes like this:

12.00, 12.10, 12.20, 12.30, 12.40...

And the other run:

12.05, 12.15, 12.25, 12.35, 12.45...

So both runs every 10 minutes, just not at the exact same time if that makes sense.


You can schedule them to start 5 minutes apart with a 10 minute cycle.

To run every 10 minutes starting at whole hours you can use;

0/10 * * * *

...for 0, 10, 20, 30, 40, 50.

To run every 10 minutes starting at 5 past every hour;

5/10 * * * *

...for 5, 15, 25, 35, 45, 55.