Prepares printer/plotter accounting records.
/usr/sbin/pac [ -c ] [ -m ] [ -pPrice ] [ -PPrinter ] [ -qFile ] [ -r ] [ -s ] [ Name ... ]
The pac command prepares printer/plotter accounting records for each user of the selected printer or for the users specified by the Name parameter. For printer choices, see the -P flag.
The unit of measure is the number of pages, with the exception of raster devices, for which feet of paper is measured. Output is expressed both as the number of units used and the charge in dollars. For information on the charge (price) per unit, see the -p flag.
The accounting file specified in the /etc/qconfig file and the file created to contain the summary information must grant read and write permissions to the root user or printq group. The pac command generates the summary file name by appending _sum to the path name specified by the acctfile = clause in the /etc/qconfig file. For example, if the qconfig file reads:
acctfile = /var/adm/1p0acct
The pac command expects the summary file to be named /var/adm/1p0acct_sum.
/usr/sbin/pac
The command displays the number of printed pages and the charge, sorted by user. This example assumes that there is no PRINTER environment variable.
Note: Do not place a space between a flag and its variable; for example, the -pPrice, -PPrinter, and -qFile.
/usr/sbin/pac | Contains the pac command. |
/etc/qconfig | Specifies the path to the file. |
The acctcms command, acctcom command, acctcon1 or acctcon 2 command, acctmerg command, acctprc1, acctprc2, or accton command, runacct command.
The qconfig file.
Setting Up an Accounting System in AIX 5L Version 5.1 System Management Guide: Operating System and Devices.
Accounting Overview in AIX 5L Version 5.1 System Management Guide: Operating System and Devices.