[cups.general] a milter like facility for cups accounting?

Jerome Alet alet at librelogiciel.com
Tue Oct 24 07:15:13 PDT 2006


On Tue, Oct 24, 2006 at 10:10:33AM -0400, wtautz wrote:
>
> It seems to me that currently one is relegated to creating a backend
> that attempts
> to do accounting after sending data to the official cups backends. From
> what I can see this procedure is not deterministic. For example, one has
> to query the printer sometime after the job has been submitted to the
> real cups backend which implies one has to "guess" when the job
> is done or worse repeatedly query the printer rather than opening the
> port to the printer and submitting accounting directives along side the
> actual print data. In this way we can be absolutely certain we are getting
> back information about our actual print job. I get the impression that
> this is what the older psif
> filters did. Perhaps I'm misreading the situation?

I'm not sure what you are proposing would work with all printers.

Rendering a page on a printer takes time, and if your accounting
directives were sent just after the last page, they would probably
be executed before the last page of the real job had been ejected, 
this means that the value they would return would be incorrect.

bye

Jerome Alet





More information about the cups mailing list