On Tue, 3 Nov 1998, Robert M. Hyatt wrote:
> On Tue, 3 Nov 1998, Amir Gil wrote:
> > 2) A little off-topic - does anybody have a script/code for shutting a
> > linux box (hardware shutdown) from a remote terminal?
> 
> Can't help with (1) but for (2) log in as root and execute "shutdown -h
> now" or "shutdown -r now"...  trivial for a login script...  You can use
> either rlogin or telnet to connect...

You can also use rsh, ssh, or whatever.  You don't really have to log in
with an interactive shell.

Or, if you're looking for an external hardware solution, there's something
called (I think) "jsd" (or something like that) that lets you trigger
shutdown's via the joystick port.

However, I think Amir may have been asking how to power off the system as
well.  

The more recent kernels have an option, under APM when configuring the
kernel, to power off the system after a shutdown.  If your mboard fully
supports APM, this may get the machine turned off for you.

I have no idea whether it is undesireable to have APM enabled on a member of
a computing cluster...

-Andy

Global Auctions
http://www.globalauctions.com

Reply via email to