Skip to content

CRON String Format

QIE uses CRON strings to schedule recurring work: checking for updates, polling a file or FTP source, running a scheduled script, and refreshing a system variable all take one.

[sec][min][hr][day][mth][weekday]

Examples:

* * * * * *          = every second
*/10 * * * * *       = every ten seconds
0 0 * * * *          = the top of every hour of every day
0 0 8-10 * * *       = 8, 9 and 10 o'clock of every day
0 0/30 8-10 * * *    = 8:00, 8:30, 9:00, 9:30, 10:00 and 10:30 every day
0 0 9-17 * * MON-FRI = on the hour nine-to-five weekdays
0 0 0 25 12 ?        = every Christmas Day at midnight

Multiple CRON strings can be combined by using the | character. QIE evaluates each expression and fires on whichever is next:

0 0 18 * * MON-FRI | 0 0 12 * * SAT,SUN = 6pm on weekdays and noon on weekends

Wildcard in the seconds position

The first field is seconds. A wildcard (*) there fires the schedule every second while the other fields match. * 30 22 * * * runs 60 times per minute during 22:30. To fire once at 22:30, use 0 30 22 * * * (a specific seconds value).