prntacct(1M)
NAME
prntacct − printer accounting filter
SYNOPSIS
/usr/lib/acct/prntacct [ options ]
DESCRIPTION
prntacct is a filter intended to do print-job accounting on straight-text printers. On ASCII-only jobs, it attempts to count the number of pages, and writes an accounting record on the designated accounting file. All other jobs are simply passed through. No character conversion of any kind is performed.
The accounting file is an ASCII file of one-line records. These records have the format
<number of pages><host>:<name>
They are intended to be interpreted by pac(1M).
prntacct is intended to be called from the interface script for the printer for which it is acting, with its input redirected from the printer input, and its output redirected to the printer or its output filter (if such is needed).
OPTIONS
−n name
name of the user that issued the print request. This argument must be present.
−h host
host where the print request was issued; defaults to current host.
−P file
pathname of the accounting file for the current printer.
−l length
number of lines in a page, used for computing the number of pages taken by the job. Defaults to 55.
FILES
/usr/adm/dumbdefault accounting file.
/usr/adm/<printer_name>recommended printer accounting files.
SEE ALSO
pac(1M), CX/UX System Administration.
BUGS
prntacct does not know that ASCII 014 (octal) is typically interpreted as the form-feed character.
All-ASCII escape sequences on printers that take them have the same effect.
CX/UX Administrator’s Reference