[cups] empty page_log file
Helge Blischke
helgeblischke at web.de
Fri Jun 10 07:56:22 PDT 2016
> Am 10.06.2016 um 14:40 schrieb Brian Potkin <claremont102 at gmail.com>:
>
> 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.
There is a directive
PageLogFormat
for use in cupsd.conf. It uses a template defining the desired format for the
page_log entries (see the online help for details.
If this keyword is *not* present, the default format is used.
But, if the keyword is used without an argument, this means that *no* page log entries
are written, and an empty page_log file is created.
Helge
More information about the cups
mailing list