I'm trying to get three cron jobs to run incrementally throughout the day. I use contab to schedule some jobs on my linux server.
- I don't want the jobs to run at the same time as each other
- I want the jobs to run ever 16 minutes (or 17 or 18 - see below). I'm trying to avoid having the jobs all running at the same time ever hour and especially I don't want them to run at the top of the hour, every hour. It's ok if the jobs rotate into the top of the hour once in awhile.
Here is the cron entries
*/16 * * * * (cd ~rp/public_html/special_tools && ./online_purge.php purge) 2>&1 | mail -s "RP Online Purge" rp-admin
*/17 * * * * (cd ~fp/public_html/special_tools && ./online_purge.php purge) 2>&1 | mail -s "FP Online Purge" rp-admin
*/18 * * * * (cd ~ar/public_html/special_tools && ./online_purge.php purge) 2>&1 | mail -s "AR Online Purge" rp-admin
Problem is that the jobs all run seem to start at the top of the hour and rotate, but start over at the top of hour,, because I guess I have not scheduled the cron correctly.
See this print screen. It shows when the jobs run.
I hope the jobs run like this...
16 mins, then runs again in 16 mins, then again in 16 mins, etc, etc, etc
I appreciate your help