-
-
Save barcar/780ad84ab3fe56d3e26e5b70b0128ee8 to your computer and use it in GitHub Desktop.
Crontab template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Crontab - Crontab template to automate virtual world | |
# Based on template from https://gist.github.com/bretonics/9a48a3b9ef32d93d15f45c3f007550b4 | |
#MAILTO="" | |
# ============================================================================== | |
# MIN(0-59) HOUR(0-23) DOM(1-31) M(1-12) DOW(0-6) CMD | |
# |__________|_________|_______|________|______ |__MINUTE of | |
# |_________|_______|________|______ |__HOUR of | |
# |_______|________|______ |__DAY of | |
# |________|______ |__MONTH | |
# |______ |__DAY of WEEK | |
# |__Command | |
# | |
# @hourly Run once an hour == 0 * * * * | |
# @daily Run once a day == 0 0 * * * | |
# @midnight (same as @daily) | |
# @weekly Run once a week == 0 0 * * 0 | |
# @monthly Run once a month == 0 0 1 * * | |
# @yearly Run once a year == 0 0 1 1 * | |
# @annually (same as @yearly) | |
# @reboot Run at startup | |
# | |
# .---------------- minute (0 - 59) | |
# | .------------- hour (0 - 23) | |
# | | .---------- day of month (1 - 31) | |
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ... | |
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat | |
# | | | | | | |
# * * * * * Command | |
# ============================================================================== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment