Andrew Daviel (andrew@andrew.triumf.ca)
Wed, 20 Jan 1999 13:30:38 -0800 (PST)
On Sun, 17 Jan 1999, Harondel J. Sibble wrote:
> On 17 Jan 99, at 9:36, Brian Edmonds wrote:
>
> > Andrew Daviel <andrew@daviel.ml.org> writes:
> > > Is there a way to do this for $0 with no Win compiler, etc. ??
>
> Actually all you really need to do is run a batch file for that, we had this
OK; what does one put in the batch file ? I could probably trigger it
with BackOrifice !! (I guess I could search dejanews ...)
> What ups are you using? I have an apc and their s/w doesn't technically
> support that sort of remote shutdown. OTOH, Exide, and a couple of other
BackUPS 500 - the cheapest APC model with a connector. Uses the "dumb"
mode. I'd previously done a BackUPS 400 a few years ago, and copied the
cable I'd made for that, software etc. so it's not standard RedHat etc.
powerd monitors line fail and battery low via ttyS0 (batt low is open
collector, so there's a PNP transistor biased off RTS and DTR or something
to convert to RS232), then writes a cookie LOW/FAIL/OK to
/var/run/powerstatus and sends a SIGPWR to init. inittab does variously
shutdown +5, shutdown -k or shutdown -k ; shutdown now depending.
rc0.d/K99halt or whatever sends a line break on TX which turns off the
inverter, so you have some battery left for the next outage :-)
So, there's scripts one can put extra stuff in with netcat, smbclient,
whatever to poke Win95.
The APC SmartUPS models have some ASCII RS232 interface so you can ask
it things like what voltage is BC Hydro giving today. I wrote something
like that for Irix to talk to a big Alpha UPS - one can graph output
current, battery voltage, battery temperature etc. A bit of a pig since
the Alpha serial port was never meant to have a computer on it, only a
dumb terminal...
> > I don't recall, does VNC run on Win95, or only NT? If it runs on 95, then
> > you could just run a server on the 95 box, connect with a Linux client,
> > and you get a full 95 desktop, presumably including shutdown capability.
..I don't want to click on something, I want it to shutdown when I'm not
there.
Andrew
This archive was generated by hypermail 2.0b3 on Wed 20 Jan 1999 - 13:31:28 PST