cron

Cron Scheduler

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 mins


# clean logs every 5 mins
*/5 * * * * /home/jurn/bin/clean_logs.sh
    

This will run "/home/jurn/bin/clean_logs.sh" every 5 minutes

Published: Tuesday, 25 May 2010