[cups] Bash Command for List of Jobs

Guy Wickenden guy.wickenden at equator-design.com
Sat Jan 10 05:56:35 PST 2015


Hello Michael,

Thank you for your reply, job name is what I was looking for when I said file name :) When I run:

lpstat -l -W completed -o

I get results that look like this:

Xerox560_2-3            guywickenden     74752   Fri 21 Nov 15:05:05 2014
	Status: 
	Alerts: job-canceled-by-user
	queued for HP_LaserJet_P1006

Which sadly doesn’t contain the job name? When I look at:

http://localhost:631/jobs?which_jobs=completed <http://localhost:631/jobs?which_jobs=completed>

The job name is there, so I suppose I am wondering where on earth the web server picks that data up from?

Cheers folks! :)
Guy

> On 9 Jan 2015, at 16:58, Michael Sweet <msweet at apple.com> wrote:
> 
> Guy,
> 
> There is no way to get the original document filenames unless the job name is set to the filename - "lp" and "lpr" do that, but none of the standard OS X applications do that...
> 
> "lpstat -l -W completed -o" will provide a "long" listing of completed jobs, including the job name.
> 
> 
>> On Jan 9, 2015, at 11:22 AM, Guy Wickenden <guy.wickenden at equator-design.com> wrote:
>> 
>> Hello folks,
>> 
>> Sorry I know I asked this before but nobody replied :( Is the command I can put into bash that will give me a list of all the prints that have been done on that cups device (my mac in this case) that includes the file names? (I have already turned off the security around usernames).
>> 
>> Warm Regards and have a wonderful new year! :)
>> Guy Wickenden
>> 
>> _______________________________________________
>> cups mailing list
>> cups at cups.org
>> https://www.cups.org/mailman/listinfo/cups
> 
> _________________________________________________________
> Michael Sweet, Senior Printing System Engineer, PWG Chair
> 
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://www.cups.org/mailman/listinfo/cups




More information about the cups mailing list