Ilan Finci wrote:

> I don't have the download site (since got it on a CD), but the details are:
> RUPS Lite - UPS Monitoring Utility. Version 3.1
> Copyright(C) Mega System Technologies, Inc. 1999.

Another solution, for the hardware hackers among you would be to use a
small power converter (aka "wall wart") to keep a relay closed. The contacts
of the relay can be read using one of the control lines of a serial port
or a joystick port.

Similar devices can be used for mechanical thermostats (over temperature)
water detection, fire alarms, etc.

Sample (meta) perl code would be like:

        do {
#
#       read_the_correct_bit_from_the_port is a subroutine to read the
#       bit set by the relay. Returns 1 if closed 0 if open.
#
                $x = read_the_correct_bit_from_the_port();
                if ($x)
                        {
                        sleep(60);
                        next;
                        }
#
#               Shutdown the system
#
                system("/sbin/halt");
                exit 0;
                } until(0);

Geoff.
-- 
Geoffrey S. Mendelson
Bloomberg L.P., BFM (Israel) 2 hours ahead of London, 7 hours ahead of New York.
Tel:  972-(0)3-754-1158 Fax 972-(0)3-754-1236 Email: [EMAIL PROTECTED] 


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to