home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.pc-clone.32bit
- Path: sparky!uunet!gatech!emory!rsiatl!jgd
- From: jgd@dixie.com (John De Armond)
- Subject: Re: UPS Shutdown Software??
- Message-ID: <hr1rrck@dixie.com>
- Date: Fri, 08 Jan 93 23:24:36 GMT
- Organization: Dixie Communications Public Access. The Mouth of the South.
- Keywords: UPS
- References: <C0In2n.IA3@world.std.com>
- Lines: 34
-
- sandyb@world.std.com (Sandy Bendremer) writes:
-
- >I have a Topaz/Square D CUB Powermaker UPS, on a 486 based system running
- >SVR4. The unit is equipped with a DB9 connecter and some simple relays that
- >show loss of AC power and low battery. The manual says that user supplied
- >software and cable are required to make use of this feature.
-
- >Is there any simple software kicking around that allows one to use an RS232
- >port to monitor the UPS like this. It seems that some of the standard RS232
- >control lines could be used for this purpose.
-
- This is too easy to do to need a program. A simple shell script will
- work. On a spare serial port, connect the power fail contact so that
- it raises DCD when it is time to shut the computer down.
-
- In a shell script, do approximately the following:
-
- echo "foo" >/dev/ttyxx
-
- /etc/init 0 (or shutdown or whatever it takes to do it.
-
- What happens is the first command blocks on the port until DCD is asserted.
- When it is asserted, eg, it is time to shut down, the next command
- makes it happen. to make absolutely sure this script is always running,
- start it from /ect/iniitab with a "respawn" flag.
-
-
- John
- --
- John De Armond, WD4OQC |Interested in high performance mobility?
- Performance Engineering Magazine(TM) | Interested in high tech and computers?
- Marietta, Ga | Send ur snail-mail address to
- jgd@dixie.com | perform@dixie.com for a free sample mag
- Need Usenet public Access in Atlanta? Write Me for info on Dixie.com.
-