Skip to content

Instantly share code, notes, and snippets.

@mnguyenngo
Created October 1, 2018 21:01
Show Gist options
  • Save mnguyenngo/6fd6fc956d235bf29092651b74f86539 to your computer and use it in GitHub Desktop.
Save mnguyenngo/6fd6fc956d235bf29092651b74f86539 to your computer and use it in GitHub Desktop.
crontab template
# ┌──────────────── Minute (0 ... 59)
# │ ┌───────────── Hour (0 ... 23)
# │ │ ┌────────── Day (1 ... 31)
# │ │ │ ┌─────── Month (1 ... 12)
# │ │ │ │ ┌──── Weekday (0=Sun ... 6=Sat)
# ┴ ┴ ┴ ┴ ┴
# * * * * *
# run at 1:00 AM everyday from Monday through Friday
0 1 * * 1-6 cd projects/cron_hello_world/ && python hello_world.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment