Patrick,

Thanks much!  This looks like it will solve my problem.

A few comments:

As of 3.8.2, the lpq man page and the lpq "usage" message know nothing
of the "-v" option.

Section 19.6 of the HowTo ("lpq Requests") has the message string as:
   \009printer [id]* \n    LPRng extension- verbose

I think it should be octal.

Finally, since you, me, and probably lots of others are building
edifices around "lpq -v", it would be nice if its output format were
documented.  To prevent surprises.  I hate surprises.

-Rick

Patrick wrote:
> See the lpq -v format.  This is probably what you want... cause I do
> exactly the same thing:
> 
> h110: {104} % lpq -v |head
> Printer: lp@h110 Printing: no
>   Aborted: no
>   Spooling: no
>   Queue: no printable jobs in queue
>   Server: no server active
>   SPOOLCONTROL=
> change=0
> printing_aborted=0
> printing_disabled=0
>   Status: subserver process pid 69361 exit status 'JSUCC' at 09:27:17.713
> 
> You can get this format by using the following LPRng request:
> 
> \011printername\n
> 
> h110: {104} % printf "\011lp\n" | nc localhost 515
> 
> As they say,  your mileage may vary.

-- 
|Rick Cochran                                   phone: 607-255-7618|
|Cornell CIT - Systems & Operations - Net-Print   FAX: 607-255-8521|
|730 Rhodes Hall, Ithaca, N.Y. 14853        email: [EMAIL PROTECTED]|

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