LinuxSir.cn,穿越时空的Linuxsir!

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

关于定时关机的问题,到底是那个命令阿?怎么输入都不对阿?

[复制链接]
发表于 2006-10-13 22:46:43 | 显示全部楼层 |阅读模式
shutdown   -t  3600


shutdown   -s   -t  3600

以上这两个都是一个小时后关机
但是都不行阿
到底shutdown命令怎么用阿


root@climan-desktop: # shutdown  --help
Usage: shutdown [OPTION]... TIME [MESSAGE]
Options:
  -e, --event=EVENT           shutdown event to send
  -r, --reboot                reboot after shutdown
  -h, --shutdown              halt or power off after shutdown
  -H, --halt                  halt after shutdown (implies -h)
  -P, --poweroff              power off after shutdown (implies -h)
  -c, --cancel                cancel a running shutdown
  -k, --warn-only             only send warnings, don't shutdown
  -q, --quiet                 reduce output to errors only
  -v, --verbose               increase output to include informational messages
      --help                  display this help and exit
      --version               output version information and exit

Report bugs to <new@bugs.launchpad.net>


请问到底是哪个命令阿?
发表于 2006-10-14 01:13:51 | 显示全部楼层
I never use that, but try:

shutdown -t 3600 -h
回复 支持 反对

使用道具 举报

发表于 2006-10-15 23:24:28 | 显示全部楼层
sleep 30m; halt
^^
回复 支持 反对

使用道具 举报

发表于 2006-10-16 11:47:42 | 显示全部楼层
我用shutdown也有问题,shutdown now总是关机到最后一步,然后就死在那里。
回复 支持 反对

使用道具 举报

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

本版积分规则

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