Skip to content

Instantly share code, notes, and snippets.

@zverbatim
Last active August 19, 2016 17:22
Show Gist options
  • Save zverbatim/0cd35bfc323e901db45cf57086978187 to your computer and use it in GitHub Desktop.
Save zverbatim/0cd35bfc323e901db45cf57086978187 to your computer and use it in GitHub Desktop.
Crontab notes
# Crontab table entries
________________________ Minute of the Hour (0–59)
| ______________________ Hour of the Day (0–23)
| | ____________________ Day of the Month (1–31)
| | | __________________ Month of the Year (1–12)
| | | | ________________ Day of the Week (0 – 6 for Sunday through Saturday)
| | | | | ______________ Command to Execute (Full path is required)
| | | | | |
| | | | | |
2 1 8 1 * /home/foo/script.bash 2>&1 >/dev/null
# run a sctipt using the `at`
echo ‘/home/foo/script.bash’ | at now + 5 minutes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment