[cups] empty page_log file

Brian Potkin claremont102 at gmail.com
Thu May 26 10:57:34 PDT 2016


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.

Regards,

Brian.


(Nothing to do with this issue but the search facility at

  https://www.cups.org/documentation.php

does not work for CUPS 2.0 and CUPS 2.1. Is it just me?)



More information about the cups mailing list