Sidebar

What is the end time for a cron string to set a channel to run during a specified interval?

0 votes
435 views
asked Aug 19, 2016 by gary-h-3646 (180 points)
 
Do the sample cron strings for scheduling a channel to run in specific intervals (article #421) specify the beginning of the hour?  For example, will the string 0 0 8-10 * * * set the channel to run from 08:00:00 to 10:59:59 or will it stop at 10:00:00?

1 Answer

0 votes

It would run at 10:00:00 as it is in the window you have specified.

Cron 0 0 8-10 * * *:
8:00:00
9:00:00
10:00:00

 

Cron 0 0 8-9 * * *:
8:00:00
9:00:00

To specify minutes you can do the following:

Cron 0 */5 8-10 * * *:
8:00:00
8:05:00
8:10:00
...
9:00:00
9:05:00
9:10:00
...

10:00:00
10:05:00
10:10:00
...
10:55:00

answered Aug 19, 2016 by brandon-w-8204 (33,270 points)
edited Aug 19, 2016 by brandon-w-8204
...