[cups] list jobnames in lpstat

Jörg Thümmler listen at vordruckleitverlag.de
Sun Jan 31 23:01:50 PST 2021


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


More information about the cups mailing list