[cups] list jobnames in lpstat

Jörg Thümmler <[email protected]>
Newsgroups gmane.comp.printing.cups.general
Message-ID <[email protected]>
Hi,

is there a way to get the job names/titles with the lpstat (or any other 
cmdline call) of cups jobs?

If i'm calling

lpstat -t -W completed -o p048p1r

i'm getting a nice job list:

p048p1r-55160           dvs              2048   Mon Feb  1 07:04:28 2021
p048p1r-55159           dvs              1024   Mon Feb  1 07:03:29 2021
p048p1r-55158           dvs              2048   Mon Feb  1 07:02:38 2021
...

my jobs have titles which say what program is sending and which document 
provided by lpr "-C" option: "job-name..dvs-p501-ls-91190107" (taken 
from the /var/spool/cups/cXXXXX file.

Using the localhost:631 website, jobs are shown with their names, but 
i'm trying to get them by a script.

Someone knows whether the -J or -T option of lpr would make difference? 
(the website uses the names provided by -C and ignores -T and -J - 
former it used the name provided by -J)

Thx for any idea

-- 
cu

jth
_______________________________________________
cups mailing list
[email protected]
https://lists.cups.org/mailman/listinfo/cups
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.