Home > OS >  Crontab expression for a 8 and a half hour range
Crontab expression for a 8 and a half hour range

Time:11-09

Crontab to run a job every minute from 11pm to 7:30am

I have this so far which is every minute from 11pm to 7:00am the problem is the half hour.

* 23,0-7 * * *

You can play around with it here crontab_guru Any ideas?

CodePudding user response:

@Dunski : I have checked in many ways this *,0-30 23,0-7 * * * expression could stop at 07:59 min only but not yet 07:30 am.

As @jordanm suggested we have only a way to run two jobs from :

11 pm to 7 am expression * 23,0-7 * * * (“At every minute past hour 23 and every hour from 0 through 7.”) and then

7 am to 7:30 am 0-30 7 * * * (“At every minute from 0 through 30 past hour 7.”).

  • Related