Cron Scheduler

Published: Tuesday, 25 May 2010

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/

This will run /opt/ every 5 minutes