Hi,
I ran the command
lpq -D1 -Praw@dup
and noticed that lpq indeed talks to the printer and gets the status line
from prionter. But it does not display it. Here is the last relevant lines
from -D1 output
2001-04-02-07:49:40.538 nslocum [36075001] lpq raw: Send_request: printer
'raw'
, host 'dup', format 4
2001-04-02-07:49:40.538 nslocum [36075001] lpq raw: Send_request:
connnect_time
out 10, transfer_timeout 30
2001-04-02-07:49:40.538 nslocum [36075001] lpq raw: Fix_send_auth: name
'<NULL>
'
2001-04-02-07:49:40.539 nslocum [36075001] lpq raw: Fix_send_auth: no
security
2001-04-02-07:49:40.539 nslocum [36075001] lpq raw: Send_request: security
<NUL
L>
2001-04-02-07:49:40.539 nslocum [36075001] lpq raw: Send_request: command
'^Dra
w'
2001-04-02-07:49:40.546 nslocum [36075001] lpq raw: Send_request: socket 3,
rea
l host 'dup'
2001-04-02-07:49:40.547 nslocum [36075001] lpq raw: Read_status_info:
output 1,
timeout 30, dspfmt 4
2001-04-02-07:49:40.547 nslocum [36075001] lpq raw: Read_status_info:
status_li
ne_count 1
2001-04-02-07:49:40.563 nslocum [36075001] lpq raw: Dump_line_list: lpq-
status
- 0x7fff2d88, count 1, max 102, list 0x1002c000
2001-04-02-07:49:40.563 nslocum [36075001] lpq raw: [ 0] 0x1002bb88
='JetDire
ct lpd: no jobs queued on this port^M'
2001-04-02-07:49:40.563 nslocum [36075001] lpq raw: Read_status_info: after
che
cks look_for_pr 1, line 1, last_line -1
2001-04-02-07:49:40.563 nslocum [36075001] lpq raw: Read_status_info: done
2001-04-02-07:49:40.563 nslocum [36075001] lpq raw: Show_status: end
2001-04-02-07:49:40.563 nslocum [36075001] lpq raw: lpq: done
2001-04-02-07:49:40.564 nslocum [36075001] lpq raw: lpq: tempfiles removed
2001-04-02-07:49:40.564 nslocum [36075001] lpq raw: lpq: after loop
2001-04-02-07:49:40.565 nslocum [36075001] lpq raw: lpq: cleaning up
2001-04-02-07:49:40.565 nslocum [36075001] lpq raw: cleanup: done, exit(0)
How cam I make lpq tell me the status line, it got from the printer?
Thanks,
rajeev
Rajeev Agrawala wrote:
> On version 3.6.12 if I did
>
> lpq -Praw@pc
>
> It would bypass printcap and talk to 'pc' and get status for raw. I used
> to use it to see open connections for printer.
>
> I upgraded to 3.7.4, this no longer works. I noticed the lpq first
> queries for printer 'all' now and then returns no output.
>
> Is there a way, I query the printer directly.
>
> Thanks,
>
> rajeev
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------