I would like to have a script run every 5 minutes let's say starting from 13:02 so I can have another script runs every 5 minutes but starting from 13:04 so the second script runs two minutes after the start of the first job. How can I achieve this?
Unix – How to run a cron job every 5 minutes starting from a time other than 0 minutes
cronunix
Related Topic
- Linux – How to get a cron job to run every 30 minutes
- Bash – In the shell, what does ” 2>&1 ” mean
- Quartz Cron Expression: Run Job Every 10 minutes starting NOW (immediately)
- Ubuntu – How to run cron job every 2 hours
- Ubuntu – Running a cron every 30 seconds
- Run Cron job every N minutes plus offset
- R – MFC multithreading with delete[] , dbgheap.c
Best Answer
Syntax 1
For future reference take a look at this online Cron Job Generator.
Syntax 2
Since there are several reports that the
+
syntax is not working on Ubuntu 14.04, here's a variation:This will result in the 1st script to run every 5 minutes starting with an offset of 2 minutes at the beginning of each hour and the 2nd script to behave the same with an offset of 4 minutes.