Crontab
Columns:
minute 0-59
hour 0-23
day month 1-31
moth 1-12
day week: 0-7 (0 & 7 sunday)
script/command
Example 1 (for the minute column)
Example 2
Run script.sh:
every day of the week
every month
every day of the month
at 4 am
every 15 minutes
Example 3
Run script.sh:
only if it's monday
every month
every day of the month
at 3 am
at minute zero
Note: when editing the crontab table, make sure the columns are sorted
Last updated