[cups-devel] how to get the page info of a canceled job?
Michael Sweet
msweet at apple.com
Wed Jun 25 06:19:54 PDT 2014
Really, please don't do this. The location and format of these files is an implementation detail that is subject to change, and normal users do not have access to them.
We provide API (cupsGetJobs/cupsDoRequest) and a tool (ipptool) for getting job history via the supported IPP interface, and those will always work regardless of the underlying storage model being used by cupsd.
On Jun 25, 2014, at 8:37 AM, Douglas Kosovic <doug at uq.edu.au> wrote:
> Hi 闫崇军,
>
>> For a cancled job, there will not be any information logged in the page_log file, i.e, I can not get the page range, copies ...etc for a
>> canceled job. Is there any way to know these information? Anyone can help me?
>
> You could get the page count directly from the job itself which would be cached under /var/spool/cups/ for example Job# 12345 it would be:
> /var/spool/cups/d12345-001
>
> The "d" files are the "data" files, i.e.print job files and are typically gzipped Postscript file or gzipped PDF files.
>
> The "c" files (e.g. /var/spool/cups/c12345) are the "control" files and provide job history data such as the page range, copies, etc.
>
> It also depends on how you configured CUPS as to how long the "c" and "d" files are kept.
>
>
> Cheers,
> Doug
>
> _______________________________________________
> cups-devel mailing list
> cups-devel at cups.org
> https://www.cups.org/mailman/listinfo/cups-devel
_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair
More information about the cups-devel
mailing list