[cups-devel] how to get the page info of a canceled job?

Douglas Kosovic doug at uq.edu.au
Thu Jun 26 22:30:12 PDT 2014


Hi,

Mike's suggestion of using the CUPS API is way better.

I just thought you wanted something to do some quick debugging of a cancelled job. I usually use 'less' and don't worry about the binary characters.

I also thought CUPS may not know the page count of a cancelled job as it would depend on where in the printing process it got cancelled. Having the original print file might be the only way in these cases. At my site CUPS was configured not to delete print files after they were submitted and use a cron job to delete old files after a few hours.


Cheers,
Doug

> -----Original Message-----
> From: cups-devel-bounces at cups.org [mailto:cups-devel-bounces at cups.org]
> On Behalf Of liu3
> Sent: Friday, 27 June 2014 11:40 AM
> To: cups-devel at cups.org
> Subject: [cups-devel] how to get the page info of a canceled job?
> 
> Dear Douglas Kosovic
>            Thank you very much for your reply.
>           I posted a message:" 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? "
> 
>         you wrote:
> 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
> 
>          I checked these files, files like "/var/spool/cups/d12345-001 " will be
> deleted once the job has completed, and it is not easy for me to read this file
> at the rihgt time.
> and files  like "/var/spool/cups/c00001 " does contain the page rang and
> copies info, but it seems to be strange char,such as
> "copies^@^D^@^@^@A#","number-up^@^D^@^@^@AE"...etc. Can you tell
> how to decode these code?
> 
> 
> Thank you very much, and best regards.




More information about the cups mailing list