Remote Shutdown

Stefan Bruda yellowdog-general@lists.terrasoftsolutions.com
Tue Nov 19 21:14:01 2002


At 21:11 -0700 on 2002-11-19 Drew Lane wrote:
 >
 > What's the best way to shutdown one computer from another?
 > 
 > I was able to telnet to the second machine, switch
 > to root, and issue 'poweroff', but it froze up the
 > console on the first machine.
 > 
 > Is there a better way?

Instead of poweroff, try

    shutdown -h +1

and then log out.  This command will initiate the shutdown process
with a one minute delay, giving you time to get out of there before
the telnet session freezes.

Stefan

-- 
If it was so, it might be; and if it were so, it would be; but as
it isn't, it ain't. That's logic.
    --Lewis Carroll, Through the Looking-Glass