How do you run a cron job every minute only on specific hours? Like so:
It will only check every minute from 11AM to 12AM, 4PM to 5PM and 9PM to 10PM<
As per the cron format
* * * * * *
| | | | | |
| | | | | +-- Year (range: 1900-3000)
| | | | +---- Day of the Week (range: 1-7, 1 standing for Monday)
| | | +------ Month of the Year (range: 1-12)
| | +-------- Day of the Month (range: 1-31)
| +---------- Hour (range: 0-23)
+------------ Minute (range: 0-59)
the solution should be
* 11,16,21 * * * *