3 ms·
*/100 * * * * echo "every 100 mins"
by bahjoite 10y ago
*/100 * * * * echo "every 100 mins"
- soneil 10y agoHave you tried this? Since minute only counts from 0-59, it's never divisible by 100. I have a similar problem with "every 2 days". */2 looks simple enough, but it fires on the 29th, miss 30th, fires on 31st, then fires the 1st. 3 times in 4 days isn't "every 2 days". Cron only works for periods which are evenly divisible into the calendar. "every 7 minutes" doesn't work because 60 isn't evenly divisible by 7. "every 5 hours" doesn't work (in that it'll match 8pm and midnight, which are only 4 hours apart), etc.
- gkya 10y agoWell in cron "every two days" is more like "every second day of a month", and "ever 5 hours" like "every fifth hour of a day".
- soneil 10y agoI guess that's what I was getting at. "every 100 minutes" doesn't work, because cron reads it as "every 100th minute of an hour".
- bahjoite 10y agoYou're right; thank you for pointing out my mistake. Every day's a school day.
- jwilk 10y ago0 is divisible is by 100.