at 命令停电后再来电怎么还会执行?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
TeliuTe
论坛版主
帖子: 7675
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

at 命令停电后再来电怎么还会执行?

#1

帖子 TeliuTe » 2012-05-22 12:38

放在 /etc/rc.local 里,每天执行定时关机,同时 BIOS 里设置定时开机
偶尔断电后,第二天不会自动开机,按电源键开机到出现 Ubuntu 这个单词的时候会自动关机
请教这是怎么回事如何避免

代码: 全选

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

echo "/opt/lampp/lampp stop"|at 19:49
echo "init 0"|at 19:50

exit 0
回复