計劃任務:
1. 系統計劃任務:
[root@junjie ~]# vim /etc/crontab
650) this.width=650;" border=0>
650) this.width=650;" border=0>
Examples: "1,2,5,9", "0-4,8-12",*,"*/2".
[root@junjie ~]# cd /etc/cron.
cron.d/ cron.deny cron.monthly/
cron.daily/ cron.hourly/ cron.weekly/
系統計劃任務實現步驟:
任務(可執行腳本)à編輯任務表格(/etc/crontab)
2. 個人計劃任務:
crontab用法:
crontab [-u user] file
crontab [-u user] [-l查看 | -r刪除 | -e編輯] [-i交互] [-s]
3.調度進程來稍後執行
• 一次性作業使用at,重復性作業使用crontab
650) this.width=650;" border=0>
• 沒有被重導向的輸出會被郵寄給用戶
• 根用戶能夠修改其它用戶的作業
• at時間:MMDDYY or MM/DD/YY or DD.MM.YY HH:MM
• at 4pm + 3 days at 10am Jul 31 at now +5minutes