Showing posts with label cron. Show all posts
Showing posts with label cron. Show all posts

Tuesday, February 16, 2010

Running Scripts Every 5 Minutes using cron

To run a script every 5 minutes, add the following line into your cron file (using 'crontab -e')

*/5 * * * * /path/to/script


Also, here’s a quick reference for the layout of cron. I suggest pasting this at the top of your cron file.

# MIN HOUR DAYOFMONTH MONTH DAYOFWEEK COMMAND