> From [EMAIL PROTECTED] Tue Sep 26 10:06:58 2000
> Date: Tue, 26 Sep 2000 11:09:45 -0500
> From: Kent Schumacher <[EMAIL PROTECTED]>
> To: LPRng mailing list <[EMAIL PROTECTED]>
> Subject: LPRng: lpq and classes
>
> I'm using the 'class' feature to protect certain forms
> from accidentally being printed on (specifically, serialized
> check blanks).
>
> This works great, however...
>
> When I do an lpq -s, the jobs that are not of the current
> printer class do not show up. Note that they do when
> I do a simple lpq. Here is an example:
>
> panshin# lpq -s -Pvampir
> vampir@panshin (classes doogie) 0 jobs
>
>
> panshin# lpq -Pvampir
> Printer: vampir@panshin 'nam=Epson 740,own=kent,loc=mobile_office' (classes doogie)
> Queue: no printable jobs in queue
> Holding: 4 held jobs in queue
> Server: no server active
> Status: job 'root@panshin+453' removed at 15:37:28.153
> Filter_status: done at 15:37:27.350
> Rank Owner/ID Class Job Files Size Time
> holdclass root@panshin+469 A 469 (stdin) 29 10:19:05
> holdclass root@panshin+473 A 473 (stdin) 29 10:19:06
> holdclass root@panshin+477 A 477 (stdin) 29 10:19:06
> holdclass root@panshin+481 A 481 (stdin) 29 10:19:07
>
> This seems somewhat inconsistent, if not exactly a show stopper. It confused the
> heck out of one of my users, who thought his jobs were being thrown away...
>
> Stupid users!
>
> Oh well,
> Kent
The problem here is the semantics and format of the lpq -s command.
I have sworn an oath (and it turned the air blue, let me tell you)
that the lpq -s format would not change, and would only report jobs that
are 'ready to run' or are 'runable'.
Now you do have the source code, and you can change this, if you want...
see:
LPRng/src/common/lpd_status.c, and the get_queue_status()
routine (about line 251).
Patrick ("Use the Source, Luke, Use the Source!") Powell
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------