Skip to content

Instantly share code, notes, and snippets.

@Tjoosten
Created December 31, 2014 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tjoosten/7a2ab40c3f29cdaa3554 to your computer and use it in GitHub Desktop.
Save Tjoosten/7a2ab40c3f29cdaa3554 to your computer and use it in GitHub Desktop.
A short cron jobs reference

Cron jobs (UNIX)

Syntaxis

.---------------- Minutes (0 - 59)
|  .------------- Hour (0 - 23)
|  |  .---------- Day (1 - 31)
|  |  |  .------- Month (1 - 12) of januari, februari, maart...
|  |  |  |  .---- Day of the week (0 - 6) (Sunday = 0 or 7)
|  |  |  |  |
*  *  *  *  *  Executed command

Special options

Command Description Compares with
@reboot Runs when booting the system. Nothing
@yearly Runs once a year. 0 0 1 1 *
@annually Runs once a year. 0 0 1 1 *
@montly Runs once a month. 0 0 1 * *
@weekly Runs once a week. 0 0 * * 0
@daily Runs once a day. 0 0 * * *
@midnight Runs at midnight. 0 0 * * *
@hourly Runs once an hour. 0 * * * *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment