How do set cron to run my script every 40mins/25mins?
I want a script to run every 40mins beginning on the 40th minute. so that means: 00:40, 01:20, 02:00, 02:40, 03:20... So I made this entry to cron: */40 * * * * /path/to/script/foo.sh Unfortunately this runs the script every 40th minute of the hour: 00:40, 01:40, 02:40... The same goes with the script that I meant to run every 25mins. Am I missing something here? ANSWERS Alright, in case you happen to drop by here having the same problem here's how I solved it: # 40mins-interval 40 0 * * * /path/foo.sh (0) 0,40 2-22/2 * * * /path/foo.sh (2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22) 20 1-23/2 * * *