Cups job progress

Michael Sweet mike at easysw.com
Fri May 8 20:45:58 PDT 2009


Alex Cohen wrote:
> Hello,
> 
> Is it possible to get the progress of a job? As of now, i'm just waiting for the job state to change to something like completed bu i;d like to give some progress as a percentage, is this possible? If so, how?

Current releases of CUPS do no offer a progress attribute; many
drivers *do* write status messages with percentages, of course,
however you can't depend on that and the results are usually
localized.

CUPS 1.4 adds support for a job-media-progress attribute that
specifies a percent-complete for the current page.  There are several
open source drivers that already support it, however don't expect all
drivers to do so (we depend on the driver to tell us their
progress...)

If you know how many pages are in your job, you can monitor the
job-media-sheets-completed attribute in all versions of CUPS.

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com




More information about the cups-devel mailing list