Unfortunately, we don't currently have page level accounting support in
the LP
subsystem. The most likely place to do the counting is probably at the
back-end
in the interface script for the queue. If the printers you use support
a means of
querying for the number of pages printed, you can query the printer
before you
send data and after you have completed. If not, you need to apply some
other
heuristic. eg. number of showpage/copypage calls in PostScript files,
number of
lines/form feeds in ASCII, ... Some heuristics will be more accurate
than others.
At any rate, this is something that comes up periodically. It's
something that we
have wanted to do for a while inside of Sun, but with all that we have
on our plates,
it never seems to make it's way up the list. If you are interested, we
can work
together to develop a solution for this that we can put back into
OpenSolaris.
-Norm
Andrew Watkins wrote:
>I have been using HP Jetdirect Printing software for ages on Solaris, but I
>thought I would move over to the Solaris one, since not sure what will happen
>with the support of HP software in the future and I have notcied problems with
>it under Solaris .i.e. logs files need to be writable by all!!!
>
>Anyway, using Solaris lp server has at least one problem. How can I find out
>how many pages have been printed?
>Checking the man pages it talks about "p" which indicates the number of pages
>printered, but using our network printers it never appears in the log files
>for "plain text" or "Postscript" output......
>
>Is this true or do I have to write my own filter............
>
>Andrew
>This message posted from opensolaris.org
>_______________________________________________
>printing-discuss mailing list
>printing-discuss at opensolaris.org
>
>