|

楼主 |
发表于 2004-4-10 14:29:28
|
显示全部楼层
我按照斑竹说的把脚本写好了。然后我将crontab这样做,不知行不行:
[litty@litty litty]$ crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.4365 installed on Sun Apr 11 14:19:58 2004)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
38 22 * * 0,1,2,3,4 wall "Time is up!Shutdown the computer!"
38 23 * * 5,6 wall"Time is up!Shutdown the computer!"
41 22 * * 0,1,2,3,4 konsole --noclose -e /home/litty/bin/sdit
41 23 * * 5,6 konsole --noclose -e /home/litty/bin/sdit |
|