> From [EMAIL PROTECTED] Fri Feb  1 07:54:29 2002
> Date: Fri, 1 Feb 2002 09:21:45 -0500
> From: Joseph Formoso <[EMAIL PROTECTED]>
> To: LPRng mailing list <[EMAIL PROTECTED]>
> Subject: LPRng: Jobs being sent to stalled printers.
>
> Folks,
>
>       This morning, our Operations staff found both of our HP8100's
> had console errors.  As a result, it appears that any jobs submitted
> after the errors appeared got dumped off the queue.
>
>       I would really like it if, when the printers stopped accepting
> jobs (due to paper jams, etc.) that the jobs that were in the queues
> *stayed* in the queues until the problem got cleared.  Is there any way
> to set up the config so that happens?  I feel that I must be missing
> something pretty basic.
>

Ummm... OK, it turns out that there IS something already there...

# Purpose: failure action to take after send_try attempts failed
#   default send_failure_action=remove  (STRING)

Well... it turns out that this can be a program.

For example:
send_failure_action=|/usr/libexec/filters/check_printer_for_status

Now this program is run with all of the standard filter options,
including the PRINTCAP stuff in the environment variables.

You should now be able to 'check the printer' for activity.

I suggest a quick hack to:

a)  send email to the operator on duty

b)  periodically poll the printer

c)  when the operator does not respond, or the printer is
    offline for a reasonable time (???)  exit with JABORT

    The printer will now stay offline until it is restarted
Note:  output on STDERR is put into the status log file and
can be viewed using lpq -lll


I will put this into the Printing Cookbook

Patrick


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

Reply via email to