I've got the latest ifhp but seem to have a problem when it is used as an
"of" filter. We have bean counters so I need accounting and banner pages.
The printcap appears as:
'common
:rw
:mx#0
:sb
:sd=/var/spool/lpd/%P
:lf=log
:ps=status
:fx=flpv
cspr2|Computer Science Student Laser Printer
:sv=cspr2.a
:tc='common
cspr2.a
:ss=cspr2
:lp=XXXXXXXXXXXX.cs.keele.ac.uk%9100
:filter=/usr/local/LPRng/libexec/filters/ifhp
:of=/usr/local/LPRng/libexec/filters/ifhp
:bp=/usr/local/LPRng/libexec/filters/psbanner
:achk
:as=/usr/local/LPRng/libexec/filters/accfilter XXXXXXXX
:ifhp=model=hp4050,accounting=/usr/local/LPRng/libexec/filters/accfilter
XXXXXXXXXX
:tc='common
At this point I would love to attach some logging output but the log files
rotated before I got to them. I shall send a copy as soon as it happens
again.
What seems to go wrong is that the students switch the printer off then on
during a job. The obvious fix is some user education but we're dealing
with undergraduate students and that is not an option. What seems to happen
is thst ifhp correctly discovers that the printer has gone away and
instigates a JFAIL for the job. So far so good, but as soon as ifhp
disapears LPRng restarts the "of" filter which then sits forever waiting to
do the accounting which is never going to happen. Eventually the 6000
second timeout for the send job triggers and LPRng resets the queue.
I'm not sure what I want to happen here. Some ideas are:
1. If the "if" gets a JFAIL then the "of" is killed as well.
2. The "of" should timeout after 20 seconds of trying to get a response.
3. on JFAIL the job should be restarted rather than removed
(I can see the option for this in the printcap but what happens
after 3 attempts?)
Thoughts? Options?
--
______ [EMAIL PROTECTED] Jonathan Knight,
/ Department of Computer Science
/ _ __ Telephone: +44 1782 583437 University of Keele, Keele,
(_/ (_) / / Fax : +44 1782 713082 Staffordshire. ST5 5BG. U.K.
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------