Skip to content

Instantly share code, notes, and snippets.

@ishtiyaq
Last active July 13, 2018 15:55
Show Gist options
  • Save ishtiyaq/3cb1fbf5451e69ce3ef9c45ec9b0c95d to your computer and use it in GitHub Desktop.
Save ishtiyaq/3cb1fbf5451e69ce3ef9c45ec9b0c95d to your computer and use it in GitHub Desktop.
Linux Crons
# 1. Entry: Minute when the process will be started [0-60]
# 2. Entry: Hour when the process will be started [0-23]
# 3. Entry: Day of the month when the process will be started [1-28/29/30/31]
# 4. Entry: Month of the year when the process will be started [1-12]
# 5. Entry: Weekday when the process will be started [0-6] [0 is Sunday]
#
# all x min = */x
In general, the format is:
+---------------- minute (0 - 59)
| +------------- hour (0 - 23)
| | +---------- day of month (1 - 31)
| | | +------- month (1 - 12)
| | | | +---- day of week (0 - 6) (Sunday=0 or 7)
| | | | |
* * * * * command to be executed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment