[cups.general] How do I get lpstat to show me the actualfilenames being printed?
Michael Sweet
msweet at apple.com
Wed Sep 29 08:31:47 PDT 2010
You might try "lpq" which *does* show the filenames.
(and that AIX output is definitely non-standard - what version of AIX?)
On Sep 29, 2010, at 3:11 AM, John Dunn wrote:
> 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
>>
>>
>>
>>
>
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups
________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair
More information about the cups
mailing list