|
|
- SHELL=/bin/bash
- PATH=/sbin:/bin:/usr/sbin:/usr/bin
- MAILTO=root
- HOME=/
- # run-parts
- 01 * * * * root run-parts /etc/cron.hourly
- 02 4 * * * root run-parts /etc/cron.daily
- 22 4 * * 0 root run-parts /etc/cron.weekly
- 42 4 1 * * root run-parts /etc/cron.monthly
- # These are used to auto shutdown!
- # These three commands is for Firday & Saturday:
- 45 23 * * 5-6 wall "The system is going to shutdown in 5 minutes."
- 46 23 * * 5-6 wall "Save your works and logout NOW"
- 50 23 * * 5-6 init 0
- # These are for the rest:
- 15 23 * * 0-4 wall "The system is going to shutdown in 5 minutes."
- 16 23 * * 0-4 wall "Save your works and logout NOW"
- 20 23 * * 0-4 init 0
复制代码
周五周六23:50关机,其它时间23:20关。
以前我用at写了一个脚本,运行得很好。现在想用cron来做。但是,wall信息出不来,也没有能够在设定的时间关机。请帮我看看错在哪里? |
|