[cups] empty page_log file

Brian Potkin claremont102 at gmail.com
Fri Jun 10 05:40:19 PDT 2016


On Thu 26 May 2016 at 18:57:34 +0100, Brian Potkin wrote:

> On Tue 24 May 2016 at 08:38:44 -0700, Spike wrote:
> 
> > I do accounting through cups and page_log so I don't care as much for HP's
> > internal accounting, but the econ mode is often used for draft docs and I'd
> > like to figure out a solution to keep it.
> 
> Use lpadmin or your usual way to set up queues m401realq and m401pagelogq
> with the printer-driver-postscript-hp PPD. Have file:/dev/null as the
> DEVICE_URI for m401pagelogq and edit its PPD to remove the *cupsFilter
> line.
> 
> Write the executable file printtwice:
> 
>   #!/bin/bash
>   /usr/bin/lp -d m401realq $6
>   /usr/bin/lp -d m401pagelogq $6
> 
> and set up a queue m401 using printtwice as an interface script. Have a
> URI of file:/dev/null.
> 
> Tea4CUPS (the cups-tea4cups package in Ubuntu) would also provide an
> alternative approach. Depending on what your accounting needs are, it
> might even be more suitable.

I don't know how you went with adopting this as a solution but the
advice has been overtaken by events.

cups-filter 1.9.0 introduces page logging for the pdftopdf filter. It
will do page logging on behalf of printer drivers such as hpps which
(at present) do not do it themselves.

Regards,

Brian.




More information about the cups mailing list