Search notes:

crontab

Apparently, after editing a crontab, crontab needs to be run except when the system wide crontab /etc/crontab or files under /etc/cron.d are edited
Note that each line (also the last!) needs to end with a new line character, otherwise, it's considered broken and won't be installed.

Example for /etc/crontab

Note the user field which is not present on other crontabs.
mi = minute, hr= hour, dom = day of month, mon = month, dow = day of week
run.hourly is run 1 minute past the hour.
run.daily is run at 01:16.
run.weekly is run Saturday (6 = Saturday, 7 = Sunday, 1 = Monday etc.)
# mi hr dom mon dow user  command
  01 *  *   *   *   rene  /home/rene/run.hourly
  16 1  *   *   *   rene  /home/rene/run.daily
  31 1  *   *   6   rene  /home/rene/run.weekly
  46 1  1   *   *   rene  /home/rene/run.monthly

See also

cron

Index