Cron Scheduler

Published: Tuesday, 25 May 2010
linux

cron is a scheduler that can run scripts at specified times

Each user can run crontab -e to edit their crontab file.

The crontab entries are stored in /var/spool/cron/tabs/. This is useful to know in case you need to recover settings.

Crontab examples

Run a script every 5 minutes

# clean logs every 5 mins
*/5 * * * * /opt/clean_logs.sh

This will run /opt/clean_logs.sh every 5 minutes