Sorry to be so long on this.

See below.


> From [EMAIL PROTECTED] Wed Nov  8 07:21:26 2000
> Date: Wed, 08 Nov 2000 13:26:39 +0000
> From: Iain Rae <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: LPRng: running scripts on errors
>
> [EMAIL PROTECTED] wrote:
> <snip>
>
>
> > > Ideally I'd like to run smbclient and winpopup a message letting them
> > > know what happened to their job and why. Is there any way to do this
> > > short of hacking the source?
> > > --
> > > Iain Rae
> > > Computing Officer
> > > Dept. Civil & Offshore Engineering
> > > Heriot-Watt University
> > 
> > Yes.  This is one of the more horrible 'desperation options' in LPRng.
> > 
> >  :send_failure_action=|/script/to/do/things
>
> Sorry Patrick, pest returns. Having read through the ifhp HOWTO more
> carefully I've come across  the following which might be more
> appropriate, this way I can tell them what's wrong, kill the job and let
> the printer get on with the rest of the queue.
>
> 7.9 File Transfer and Error Status Monitoring......
>
>
> Finally, there are codes or classes of codes that require operator
> intervention. These are specified using the pjl_alert_codes, and the
> pjl_alert_handler program will be invoked to send them to the
> appropriate destination. The formated error
> message will be available on STDIN for the handler. For example:
>
>     pjl_alert_codes=[ 41* 42* 23* ]
>     pjl_alert_handler=/usr/local/libexec/filters/alert_handler
> .......
>
>
> One slight problem, does the script get the standard set of lprng/ifhp
> style paramters?  Either nothing's being passed in or I'm completely
> missing something.

Look in the environment variables.  They are all there.

>
> All I get from STDIN is the "PC/Upper/Tray2 - Letter Paper" style
> message.
>
> -- 
> Iain Rae
> Computing Officer
> Dept. Civil & Offshore Engineering
> Heriot-Watt University

-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------

Reply via email to