Crontab

A linux demon useful to schedule tasks (i.e., execute some scripts).

To edit contab file:

crontab -e

To list the scheduled tasks:

crontab -l

Example:

0 3 * * * /home/user/crontab_backup.sh > /dev/null 2> /home/user/crontab_backup.error

this command executes the script crontab_backup.sh that is in the directory /home/user every day at 3am. The output of the script is discharged (i.e., stdout is redirected to /dev/null), while errors (writes on stderr) are redirected in the crontab_backup.error located in the directory /home/user.

Examples regarding the scheduling: