Cron
Views:
more Linux Cron on Linux, Scheduled tasks on Windows
Use runat if you want to schedule a task to run just once.
Put scripts (or symlinks) in the following directories to have them executed automatically:
- /etc/cron.daily
- /etc/cron.hourly
- /etc/cron.weekly
- /etc/cron.monthly
use crontab -e (or crontab -e -u <username> to setup cron jobs to be run by your own user account / a certain user. Rather than copy or link your script to a specific directory and have it executed at a default time of day, you specfiy the exact time and date parameters and a command to execute. If your scheduled task needs more than a single command line you should write a script first, then set your crontab to execute that script. You could copy your script to some where like /usr/local/bin or more likely you'll want ~/bin (thats /home/<username>/bin ;-)
