[futurebasic] Forcing a shutdown

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 1998 : Group Archive : Group : All Groups

From: Michael Evans <mikonic@...>
Date: Thu, 29 Oct 1998 08:54:28 -0500
My local electric utility, Georgia Power, (curses on all their offspring,
even unto eternity!) specializes in midnight power outages in the range of
10 to 30 seconds about 3 to 4 times a month.

The last such outage trashed an NT server and a Power Mac 7200.

So I now own 2 APC smart UPS's which provide power to 1 NT Server and 3 Macs.

The NT Server and one Mac are powered by the first UPS. Additionally, the
NT Server is connected to the UPS via a serial cable and, if the power is
out for longer than 10 minutes, the NT server will shut down gracefully.

Similarly, my Power Mac 7200 and another Mac are powered by the second UPS.
The Power Mac 7200 is connected to the second UPS via a serial cable and,
if the power is out for longer than 10 minutes, the 7200 will shut down
gracefully as well.

My problem concerns the two Macs that are supplied power from the UPS's but
are NOT connected to the UPS's via serial cables. In the event of a power
outage longer than the capacity of the UPS's their power will simply be cut
off.

What I would like to do is write an FB app that I would place in the
shutdown items folder of the 7200 which would communicate with background
apps running on the two other Macs. When the appropriate message is
received, the background apps running on the two other Macs would force all
running applications to quit and then shut down the host Mac.

Question #1: Using FB how do I force all running applications to quit?

Question #2: Using FB how do I force a Mac to shut down elegantly?

Any hints or pointers will be appreciated...


Cheers,



----------------------------------------------------
Michael Evans
Manager of Software Development * Photo Systems, Inc.
330i Wood Valley Road, NW * Atlanta, GA, 30327-1515
Voice: (404) 846-9386 * Fax: (404) 240-0878
E-mail: evans@... *  mikonic@...
----------------------------------------------------