"cron" is the Unix (Linux, etc) scheduler which runs regularly
scheduled jobs. This post is not meant to be the "man" page (it
has one of those already), but ideas how to use "cron" in a
robust way.
Setting up cron jobsThere are at least *three* ways of
configuring cron jobs on a modern Linux system; technically these
are extensions, but they're so quasi-standard, they're even
(possibly) available on FreeBSD :)
- Per-user "crontab" file. This can be edited using crontab -e, or replaced by crontab . If you are installing system-level software, you probably don't want to use this. Each user can have only one crontab file.
- System-wide "crontab" file, usually /etc/crontab. This is usually managed by the distribution / package manager, and you probably don't want to change this; there is only one.
- Per-package "crontab" files - usually kept in /etc/cron.d. There are multiple files, usually one per …