LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 867|回复: 2

shutdown -k没有反应?

[复制链接]
发表于 2007-7-2 18:21:53 | 显示全部楼层 |阅读模式
说明上写的是发出警告,不关机,但是,偶运行的结果却:
[root@localhost ~]# shutdown -k dddd
Usage:    shutdown [-akrhHPfnc] [-t secs] time [warning message]
                  -a:      use /etc/shutdown.allow
                  -k:      don't really shutdown, only warn.
                  -r:      reboot after shutdown.
                  -h:      halt after shutdown.
                  -P:      halt action is to turn off power.
                  -H:      halt action is to just halt.
                  -f:      do a 'fast' reboot (skip fsck).
                  -F:      Force fsck on reboot.
                  -n:      do not go through "init" but go down real fast.
                  -c:      cancel a running shutdown.
                  -t secs: delay between warning and kill signal.
                  ** the "time" argument is mandatory! (try "now") **
这是怎么回事呀?谢谢
发表于 2007-7-2 19:07:36 | 显示全部楼层
命令格式不对,缺少时间参数,试试

shutdown -k now dddd

其中now可以用数字代替,表示分钟数。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-2 20:55:23 | 显示全部楼层
Post by rossini23
命令格式不对,缺少时间参数,试试

shutdown -k now dddd

其中now可以用数字代替,表示分钟数。

谢谢,已经可以啦~~~
[root@localhost ~]# shutdown -k now dddd

Broadcast message from root (pts/2) (Mon Jul  2 21:05:07 2007):

dddd
The system is going down to maintenance mode NOW!

Shutdown cancelled.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表