Skip to content

Instantly share code, notes, and snippets.

@lcrea
Created June 20, 2018 11:36
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 lcrea/c5f3d15dbd2a8b5735042b279418d17f to your computer and use it in GitHub Desktop.
Save lcrea/c5f3d15dbd2a8b5735042b279418d17f to your computer and use it in GitHub Desktop.
Crontab template for Unix e Unix-like OS
# Uncomment to disable cron mail notification for ALL the jobs:
#MAILTO=""
# COMMON MISTAKES
# - A white ending line is required, otherwise last command will not be executed
# - % character in a command must be escaped [ echo `date +\%Y\%m\%d` ]
# - % character not escaped means a new line
# - 'day' and 'week day' fields are evaluated with a OR operation:
# day=1 weekday=mon == 'execute command if now is 1st of the month OR is Monday'
#·------------------ minute (0 - 59)
#| ·--------------- hour (0 - 23)
#| | ·------------ day of month (1 - 31)
#| | | ·--------- month (1 - 12) OR jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec
#| | | | ·------ week day (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
#| | | | | ·--- command to execute
#| | | | | |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment