Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request From: cs.utexas.edu!sun.com!pease@immigrant (Roger Pease) Newsgroups: comp.sys.sun Subject: Re: How do you get a remote Sun to reboot itself Keywords: Software Message-ID: <3947@kalliope.rice.edu> Date: 15 Jun 89 04:08:41 GMT Sender: usenet@rice.edu Organization: Sun-Spots Lines: 17 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 8, Issue 40, message 1 of 14 Not so tough. The technique I've seem used involves a recursive script installed on the machine you with to halt. This script checks to see if it was envoked with a particular arbitrary option ( -xyzzy, maybe). If it was not invoked with the "magic option", it would re-envoke itself (generating a sub-shell) in the background and with the "magic option". The second invocation (in the backgound) having seen the "magic option" set, would sleep for 15 seconds or so, then invoke /etc/reboot. Got that? Maybe it's not so simple after all... But it really does work. This idea comes from a Software Technical Bulletin published by Sun. If you can't figure it out from the above (I wouldn't blame you.), I'll dig the real thing up. Hope this helps... Roger Pease