First page Back Continue Last page Overview Graphics
Scheduling
Scheduling stuff to be executed just once:
- $ sleep 12m; echo “Spaghetti on fire”
- sleep simply counts time since invocation (relative scheduling)
- $ at 15:00 echo “Wake up – time to go to class”
- relative or absolute scheduling, e.g $ at +10m echo “Time to go”
- $ atrm 1 : removes the first scheduled job
- $ atq : prints the queue of scheduled jobs
Persistent scheduling: cron
- $ crontab -e : edit my crontab, with the following syntax:
- 00 4 * * wed,sat alex /home/alex/scripts/backup_home.sh
- minute, hour, day of month, month, day of week, user, command
- $ crontab -l : list my crontab
Notes:
More info at:
http://www.mandrakeuser.org/docs/admin/index.html#s
http://www.justlinux.com/nhf/Miscellaneous/Scheduling_in_Linux.html