home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.sysadmin
- Path: sparky!uunet!spool.mu.edu!mixcom.com!parsec!alberto
- From: alberto@parsec.mixcom.com (Manuel Alberto Ricart)
- Subject: Re: NeXT Remote Power Up/Down?
- Message-ID: <1992Sep6.030034.1793@parsec.mixcom.com>
- Sender: alberto@parsec.mixcom.com (Manuel Alberto Ricart)
- Reply-To: alberto@parsec.uucp
- Organization: I keep everything where I <most likely> can find it.
- References: <Btywsz.953@suite.com>
- Date: Sun, 6 Sep 1992 03:00:34 GMT
- Lines: 49
-
- In article <Btywsz.953@suite.com> Mark-Tarbell@suite.com writes:
- > In article <BtxEHp.JIA@ux1.cso.uiuc.edu> lemson@ux1.cso.uiuc.edu (David
- > Lemson) writes:
- > > eps@futon.SFSU.EDU (Eric P. Scott) writes:
- > >
- > > >You know the "Printing" panel that pops up when your NeXT Laser
- > > >Printer runs out of paper? That's done by a handy little program
- > > >called /usr/lib/NextPrinter/Inform. It turns out that Inform can
- > > >display any message of your choosing:
- > >
- > > >a general-purpose notification service. (Hmm... you can probably
- > > >replace the "PrinterAlert" nib section with whatever you want.)
- > >
- > > You sure can, I just did it in about 25 seconds... makes a great app
- > > to pop up on all the machines in the lab when there is going to be a
- > > system shutdown!
- >
- > Note that you can't do this under 3.0. Enjoy it while you can.
-
- But you could hack your own. After all this "seems" to be a fairly
- easy thing to do, 10 sec. code:
-
- /*
- * Generated by the NeXT Interface Builder. Rename the binary with the
- * .daemon extension (to avoid a miniwindow from being created).
- */
-
- #import <stdlib.h>
- #import <appkit/Application.h>
-
- void main(int argc, char *argv[]) {
-
- // Do a run through the argument vector and switch it
- // (the most time cosuming thing in this program.
- // Don't forget to exit if argc == 0.
-
- NXApp = [Application new];
-
- // Substitute the above messages by the strings gotten from the
- // Argument vector.
-
- NXRunAlertPanel(NULL, "A Panic has just occured!","Power Off",
- "Halt","Reboot");
- [NXApp free];
- exit(0);
- }
- --
- Manuel Alberto Ricart
- alberto@parsec.mixcom.com <NeXTMail Welcome>
-