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

wtautz wtautz at cs.uwaterloo.ca
Tue Oct 24 07:42:14 PDT 2006


Jerome Alet wrote:
> 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.
>   

I suppose it depends on the printer. Waiting for an EOF ACK
would be a guarantee wouldn't it?
walter
> bye
>
> Jerome Alet
>
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups
>   





More information about the cups mailing list