> From [EMAIL PROTECTED] Sun Jul 23 11:09:59 2000
> Date: Sun, 23 Jul 2000 10:03:15 -0700 (PDT)
> From: Jose Manuel Benitez <[EMAIL PROTECTED]>
> Subject: LPRng: [Help] How to get BSD-like lpq format output?
> To: [EMAIL PROTECTED]
>
> Hi all,
>
> I've install LPRng (version 3.6.20) on our printer
> server: a pentium Linux box with distribution Red Hat
> 6.2. This machine provides printer service to a number
> of networked machines, most of them are Linux boxes
> too. I find this software a great improvement over
> classic BSD lpr system and thus, I'm in the process of
> convincing users to switch to LPRng. However, some of
> them are still reluctant to the change and so far are
> stuck at the BSD system.
>
> So I intend to make LPRng's behaviour toward
> them as closed as possible to the BSD system. The
> point is that some of them have complained about the
> format returned by "lpq", which isn't similar to the
> former. After reading the LPRng-HOWTO, I've almost got
> it, by
> including the following lines in /etc/lpd.conf:
>
> --------------------
> return_short_status=host1,host2
> short_status_length#1
> force_lpq_status=l=host1,host2
> --------------------
>
> This makes the long format the default for indicated
> hosts and reduces the line count down to 1. All I need
> now is to reduce it to 0. But if I write 0 instead of
> 1 or simply take out the number, the lpq reports
> every status line. So how can I get rid of them but
> still have the list of printer job?
short_status_length=1
You can also patch the LPRng/src/common/lpd_status.c
file to return status in whatever form you want.
Hint: you can extend 'return_short_status' to only
return the information you want.
I think that leaving out the current active status and the
current filter status is dangerous...
>
> By the way, every time I issue "lpc reread" to
> make the lpd server aware of config modifications, the
> daemon dies and I have to manually start it again. Do
> you know why?
Yes. Get the 3.6.21 release. Or wait until I see if somebody
who was having a 'high lpd load' tells me if a patch works.
Patrick
>
> Thanks in advance for your help!
>
> Cheers!
>
>
> Jos� Manuel
>
>
> __________________________________________________
> Do You Yahoo!?
> Get Yahoo! Mail � Free email you can access from anywhere!
> http://mail.yahoo.com/
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------