Cron Expression

noun

say it: “KRON ek-SPRESH-un” /ˈkrɑn ɪkˈsprɛʃən/

The five fields at the start of a scheduled job's line that say when it runs: minute, hour, day of the month, month and day of the week.

What is a cron expression?

A cron expression is the five fields that say when a cron job runs: minute, hour, day of the month, month and day of the week, read left to right. A * means "every", and 1-5 is a range.

30 9 * * 1-5    at 9:30, every day, every month, Monday to Friday
0 18 * * *      at 6:00 in the evening, every day
*/15 * * * *    every 15 minutes

In a sentence

  • “Sam read the cron expression aloud, minute first, to check it.”
  • “The cron expression 30 9 * * 1-5 means 9:30, Monday to Friday.”

Level: Journeyman · More Unix terms at this level

Updated