> From [EMAIL PROTECTED] Mon Jul 10 15:14:38 2000
> Date: Fri, 30 Jun 2000 15:09:26 -0400
> From: "William R. Knox" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: LPRng: Question and interesting observation (bug?)
>
> First the question -
>
> We are upgrading from LPRng 3.6.5 to LPRng 3.6.19, and are interested in
> maintaining the 'check_idle' functionality that was available
> previously. When I run checkpc on a queue that has this attribute, it
> tells me that I should use the new 'chooser' option instead. However, I
> am not doing load balance queues or printer pools - I merely don't want
> to try and send the job unless I have confirmed that the printer is
> there. Is there any solution to this? Simply dropping 'chooser' into
> place instead of 'check_idle' doesn't seem to have done it.
Actually, it does. You need to simply echo STDIN to STDOUT
after you determine that the printer is active and ready,
and then exit with 0 status:
#!/bin/sh
if do_magic_things_to_determine_if_printer_active ; then
cat
fi
exit 0
>
> Now for the interesting behavior. I have the following printcap entry
> for an IP printer on host my_host:
>
> queue_name|QUEUE_NAME:sh:lpd_bounce:tc=.tc_entry:if=/usr/local/etc/filters/ifhp
> -Tmodel=crlfonly:of=/usr/local/bin/lpf:[EMAIL PROTECTED]
>
> The .tc_entry looks like this:
> .tc_entry:\
> sd=/var/spool/lpd/%P:\
> check_idle=/usr/local/eprint/bin/poll_printer.pl -P %P:\
> connect_grace=10:\
> network_connect_grace=10
>
> Under LPRng 3.6.5, this worked fine. lpq would report back as follows:
> Printer: queue_name@my_host (dest [EMAIL PROTECTED]) 'QUEUE_NAME'
> Queue: no printable jobs in queue
> Filter_status: done at 11:36:41.069
> no entries
>
Strange, I do not get this when I use this as a printcap entry...
It works fine.
Try the latest version and tell me what happens...
Patrick
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------