I got impatient and went poking around for the answer. :) Lo and behold, the printer name is already stored in $PRINTER, as well as some other exciting environment variables (I believe the entire control file was in another). I did a dump of the environment from my notifier script to fnd them all. Thanks for the help -- it was very well received in the lab! :)
---- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin |$&| |__| | | |__/ | \| _| | [EMAIL PROTECTED] - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent. | IST/ACS - New Jersey Medical School - C630 On Sat, 2 Feb 2002, Patrick Powell wrote: > > From [EMAIL PROTECTED] Tue Jan 15 11:28:16 2002 > > Date: Tue, 15 Jan 2002 12:57:34 -0500 (EST) > > From: Ryan Novosielski <[EMAIL PROTECTED]> > > To: [EMAIL PROTECTED] > > Subject: Re: LPRng: Status messages and what one can do with them... > > > > Alright. I have read this, and it was helpful. The question now is, since > > the status message is only something like "paper out" or something like > > that, where can I get the spool name, to inform the recipient of the > > message WHAT is out of paper? > > > > ---- _ _ _ _ ___ _ _ _ > > |Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin > > |$&| |__| | | |__/ | \| _| | [EMAIL PROTECTED] - 973/972.0922 (2-0922) > > \__/ Univ. of Med. and Dent. | IST/ACS - New Jersey Medical School - C630 > > > > Good question. The best way to do it is look in the environment variables. > I believe that PRINTCAP_ENTRY is set to the printcap value, > and the first line in this is the printer name. > > >From a shell script: > > PRINTER=`echo $PRINTCAP_ENTRY | head -1 | sed -e 's/|.*//'` > > > Patrick Powell Astart Technologies, > [EMAIL PROTECTED] 9475 Chesapeake Drive, Suite D, > Network and System San Diego, CA 92123 > Consulting 858-874-6543 FAX 858-279-8424 > LPRng - Print Spooler (http://www.lprng.com) > > ----------------------------------------------------------------------------- > YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST > The address you post from MUST be your subscription address > > If you need help, send email to [EMAIL PROTECTED] (or lprng-requests > or lprng-digest-requests) with the word 'help' in the body. For the impatient, > to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] > with: | example: > subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED] > unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED] > > If you have major problems, send email to [EMAIL PROTECTED] with the word > LPRNGLIST in the SUBJECT line. > ----------------------------------------------------------------------------- > ----------------------------------------------------------------------------- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -----------------------------------------------------------------------------
