How do I get lpstat to show me the actualfilenames being printed?
John Dunn
jldunn2000 at googlemail.com
Wed Sep 29 03:11:21 PDT 2010
AIX does show the file name (/etc/hosts) in this example
(DEMO:john)--> lpstat
Queue Dev Status Job Files User PP % Blks Cp Rnk
------- ----- --------- --- ------------------ ---------- ---- -- ----- --- ---
text20 @44P QUEUED 455 /etc/hosts john 3 1 1
I was hopeing to parse the output from lpstat in a script to get a list of files being printed,, same as I do on AIX. Obviously this does not work on Linux.
Can't help feeling that lpstat is not much use without showing the files being printed!
> On Sep 28, 2010, at 4:10 AM, John Dunn wrote:
> > Is there any way to get lpstat show me the real name of the files that =
> are being printed? i.e for printer TestPrinter this is all I see. No =
> mention of the actual filename being printed.
>
> Sorry, the standard System V output does not include the job title and =
> we are emulating that command.
>
> > ...
> > Other versions of lpstat (e.g on AIX) always show the actual filename
>
>
> Strange, since AIX *is* a "real" UNIX and I don't actually remember =
> seeing filenames back when I worked on AIX. The Solaris, IRIX, and =
> HP-UX lpstat commands do not show the filename.
>
> .....
>
> That said, you can request this functionality by filing a bug here:
>
> http://www.cups.org/str.php
>
> Keep in mind that we don't actually know the original filename, just the =
> title of the job which defaults to the basename of the file being =
> printed or "(stdin)" if printing from the standard input.
>
> ________________________________________________________________________
> Michael Sweet, Senior Printing System Engineer, PWG Chair
>
>
>
>
More information about the cups
mailing list