…
build a schedule
builds 30 9 * * *
…
builds 30 9 * * *
A cron expression is five fields separated by spaces:
minute hour day-of-month month day-of-week. Each field says
which values match, and a job runs whenever the current time matches
every field at once.
The patterns are the same in every field. A star (*) matches
every value. A list like 1,15,30 matches those exact values.
A range like 9-17 matches everything from 9 to 17. A step
like */15 matches every 15th value from the field minimum, so
*/15 in the minute field fires at :00, :15, :30, and :45. You
can combine them: 0-30/10 means 0, 10, 20, 30.
Two fields accept names. Months take JAN through
DEC, and weekdays take SUN through
SAT, so 0 9 * * MON-FRI reads as 9am on
weekdays. Sunday is both 0 and 7. The shortcuts @hourly,
@daily, @weekly, @monthly, and
@yearly expand to the full five-field form.
*/15 9-17 * * 1-5 runs every 15 minutes from 9am to 5pm, Monday to Friday.0 0 * * 0 runs at midnight every Sunday.30 2 1 * * runs at 2:30am on the first of every month.0 */6 * * * runs every six hours.Paste any of these into the box above to see the plain-English reading and the next five run times.
*/15 mean in cron?*/6 would mean 0, 6, 12, and 18.
0 0 13 * 5 fires
on the 13th and on every Friday, not only Friday the 13th. Cronlet
follows this rule and writes "or" in the description to make it visible.