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

No comments:

Post a Comment