Page log related questions

Niklas Claesson nicke.claesson at gmail.com
Sun May 16 08:32:32 PDT 2010


Hi!
I'm using CUPS 1.4 on a debian Sid server. I'm printing from Ubuntu workstations.

Is there any recommended way of parsing the page_log file? If I use the standard format and someone prints a file with a space-character it will break my regexp.
   I'm parsing the files because I want to move the data to a MySQL-db. Is there a quicker way without using the log files?
   Another problem is that sometimes I get an extra "finished" entry:

HP_LJ_P2015N 686971 user [16/May/2010:17:01:07 +0200] 1 1 - 194.*.*.* evince-print - -
HP_LJ_P2015N 686971 user [16/May/2010:17:01:09 +0200] 2 1 - 194.*.*.* evince-print - -
HP_LJ_P2015N 686971 user [16/May/2010:17:01:10 +0200] 3 1 - 194.*.*.* evince-print - -
HP_LJ_P2015N 686971 user [16/May/2010:17:01:16 +0200] 4 1 - 194.*.*.* evince-print - -
HP_LJ_P2015N 686971 user [16/May/2010:17:01:21 +0200] 5 1 - 194.*.*.* evince-print - -
HP_LJ_P2015N 686971 user [16/May/2010:17:01:25 +0200] 6 1 - 194.*.*.* evince-print - -
HP_LJ_P2015N 686971 user [16/May/2010:17:01:37 +0200] 1 1 - 194.*.*.* evince-print - -

But that seems to be related to the software which I'm printing from, since I don't get it if I print via command line.
   A less important question, why does it write 'evince-print' and not the filename?

   I have two options which I want to see in the log file, "color" and "duplex". How should I format my pagelogformat for that to work? The "sides"-option fails, at least with evince, to show if it is printed in duplex. The "media"-option is always "-" with evince as well.





More information about the cups mailing list