Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Aug 1996 08:41:30 -0500 (CDT)
From:      Mark Tinguely <>
Subject:   Re: Printer accounting woes
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help
>  The crux of the question at this point is, "How can we get the printer to 
>  report the number of pages it prints on each job?"  The FBSD handbook 
>  suggests that it can be done (see below) but I've been unable to locate 
>  any information at HP or on the web about this issue.
>  A further question is whether or not any more sophisticated printer use 
>  management programs exist out there for FreeBSD.

postscript printers should give you the page count when you send the
following command down the serial interface:

        statusdict begin pagecount end ==

if you ask this question before and after a print job you can easily calculate
the pages printed. Be sure your serial line and application is set for

If you do not have serial line to every printer, you still can get a pretty
good *text* page count by counting carriage returns and form feeds in the
output filter. This is pretty useless for postscript files, but then a person
could work a filter program using gs to count the pauses between gs processing
the postscript pages.


Want to link to this message? Use this URL: <>