install correct aliases file
[unix-history] / usr / src / usr.sbin / lpr / pac / pac.8
CommitLineData
929f44b0
KB
1.\" Copyright (c) 1983 The Regents of the University of California.
2.\" All rights reserved.
3243ec2f 3.\"
929f44b0
KB
4.\" Redistribution and use in source and binary forms are permitted
5.\" provided that the above copyright notice and this paragraph are
6.\" duplicated in all such forms and that any documentation,
7.\" advertising materials, and other materials related to such
8.\" distribution and use acknowledge that the software was developed
9.\" by the University of California, Berkeley. The name of the
10.\" University may not be used to endorse or promote products derived
11.\" from this software without specific prior written permission.
12.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14.\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15.\"
16.\" @(#)pac.8 6.3 (Berkeley) %G%
3243ec2f 17.\"
0e7bb7ec 18.TH PAC 8 ""
3243ec2f
KM
19.UC 5
20.SH NAME
b72ae9bc 21pac \- printer/plotter accounting information
3243ec2f
KM
22.SH SYNOPSIS
23.B /etc/pac
24[
25.B \-Pprinter
26] [
27.B \-pprice
28] [
29.B \-s
30] [
31.B \-r
32] [
33.B \-c
b72ae9bc
JB
34] [
35.B \-m
3243ec2f
KM
36] [ name ... ]
37.SH DESCRIPTION
38.I Pac
39reads the printer/plotter accounting files, accumulating the number
40of pages (the usual case) or feet (for raster devices)
41of paper consumed by each user, and printing out
42how much each user consumed in pages or feet and dollars.
43If any
44.I names
45are specified, then statistics are only printed for those users;
46usually, statistics are printed for every user who has used any paper.
47.PP
48The
49.B \-P
50flag causes accounting to be done for the named printer.
51Normally, accounting is done for the default printer (site dependent) or
52the value of the environment variable
53.B PRINTER
54is used.
55.PP
56The
57.B \-p
58flag causes the value
59.I price
b72ae9bc
JB
60to be used for the cost in dollars instead of the default value of 0.02
61or the price specified in
62.IR /etc/printcap.
3243ec2f
KM
63.PP
64The
65.B \-c
66flag causes the output to be sorted by cost; usually the
67output is sorted alphabetically by name.
68.PP
69The
70.B \-r
71flag reverses the sorting order.
72.PP
73The
74.B \-s
75flag causes the accounting information to be summarized on the
76summary accounting file; this summarization is necessary since on a
77busy system, the accounting file can grow by several lines per day.
b72ae9bc
JB
78.PP
79The
80.B \-m
81flag causes the host name to be ignored in the accounting file. This
82allows for a user on multiple machines to have all of his printing
83charges grouped together.
3243ec2f
KM
84.SH FILES
85.ta 2i
86/usr/adm/?acct raw accounting files
87.br
88/usr/adm/?_sum summary accounting files
0e7bb7ec
KM
89.br
90/etc/printcap printer capability data base
91.SH SEE ALSO
92printcap(5)
3243ec2f
KM
93.SH BUGS
94The relationship between the computed price and reality is
95as yet unknown.