making a command run once every hour
I have an indexer for sphinx, and i want it to run once every hour in linux. How would i do this?
Since everyone else is posting short answers, I thought I'd be a little more descriptive...
cron
is a daemon found on most *nix systems that runs scheduled commands at the specified intervals.
You add a script to the list by copying it to the folder of your choice:
- cron.daily
- cron.hourly
- cron.monthly
- cron.weekly
These folders are typically found under /etc
folder.
Just to be different -
depending on your needs you could use the watch command.
watch --interval=3600 command
cron.
Use crontab.