How to write a cron schedule for
every 3 hours exclude from 10pm to 7 am
Looking at it as every 3 hours from 7am to 10pm gets you * 7-21/3 * * *. Change the first asterisk to a number (0-59) if you want the schedule to be once each hour rather than every minute.
Looking at it as every 3 hours from 7am to 10pm gets you * 7-21/3 * * *. Change the first asterisk to a number (0-59) if you want the schedule to be once each hour rather than every minute.
My ask was
Corn schedule: every 3 hours exclude from 10pm to 7 am
We don't want to receive alert from 10 pm to 7 am
Excluding 2200-0700 is the same as including 0700-2159, which is what the cron schedule I offered does.