Click to See Complete Forum and Search --> : how to shutdown after 5 min?
reinerm
11-27-2000, 09:13 PM
I want to showdown the system, but first warn all currently login users and delay for about 5 min and do the shutdown. I've tried
shutdown -r -t 300
but it only shows me the options on how to use the shutdown command.Any help?
thanks!
btberch
11-27-2000, 10:15 PM
try
shutdown -h +5
reinerm
11-27-2000, 10:28 PM
thanks it work! but what happened with this?
shutdown -r -t 300
is it wrong?
btberch
11-27-2000, 10:39 PM
shutdown -r -t 300
-r is to reboot
-h is to halt the system
for time you: +minutes, now or you can hh:mm for a time
you could also put a message at the end
shutdown -h +5 System back up in an hour.
Hope this helps
reinerm
11-27-2000, 11:19 PM
Originally posted by btberch:
for time you: +minutes, now or you can hh:mm for a time
just want to clarify..
whats the difference between:
+5 and -t 300
I thought they do the same thing, send some warning message,delay, then do the shutdown. Am I correct?
btberch
11-27-2000, 11:33 PM
I have not saw -t used with shutdown, but that doesn't mean you can't, i just haven't saw it. and i have only saw time with + minutes not seconds.
maybe someone smarter than me can answer those questions.
reinerm
11-28-2000, 01:26 AM
http://www.linuxnewbie.org/ubb/smile.gif, but anyway thank you for your help...