工作排程
1.預約的方式 (只執行一次)
2.循環的方式(週期性的執行)
debian:#cd /etc
debian:/etc# vi crontab
---------------------------------------------------------------
# m h dom mon dow user command
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
註記:test -x 假設 /usr/sbin/anacron 目錄存在,才執行後面的動作
#
20 17 * * * root poweroff 關機
或 20 17 * * * root shutdown -h now (-h就是 holt 下 -r就是 reboot)
--------------------------------------------------------------
沒有留言:
張貼留言