Skip to content

Instantly share code, notes, and snippets.

@uchida
Created April 30, 2011 15:34
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 uchida/949753 to your computer and use it in GitHub Desktop.
Save uchida/949753 to your computer and use it in GitHub Desktop.
crontab format
# crontab format
# * * * * * command to be execute
# | | | | +---- day of week (0 - 6) (Sunday = 0 or 7) or sun, mon, ..., sat
# | | | +------ month (1 - 12) or jan, feb, ..., dec
# | | +-------- day of month (1 - 31)
# | +---------- hour (0 - 23)
# +------------ minute (0 - 59)
# special string
# string meaning
# ------ -------
# @reboot Run once, at startup.
# @yearly Run once a year, "0 0 1 1 *".
# @annually (same as @yearly)
# @monthly Run once a month, "0 0 1 * *".
# @weekly Run once a week, "0 0 * * 0".
# @daily Run once a day, "0 0 * * *".
# @midnight (same as @daily)
# @hourly Run once an hour, "0 * * * *".
# see also man 5 crontab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment