Article View: comp.sys.next.sysadmin
Article #632Re: NeXT Remote Power Up/Down?
From: Manuel Alberto Ricart
Date: Sun, 06 Sep 1992 03:00
Date: Sun, 06 Sep 1992 03:00
49 lines
2186 bytes
2186 bytes
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>
Technical Details
Message-ID:
<1992Sep6.030034.1793@parsec.mixcom.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!mixcom.com!parsec!albertoReferences:
<Btywsz.953@suite.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.sysadmin Path: arc1-ca.pugleaf.net!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