xref: /original-bsd/usr.sbin/lpr/pac/pac.8 (revision c3e32dec)
1.\" Copyright (c) 1983, 1991, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\"     @(#)pac.8	8.1 (Berkeley) 06/06/93
7.\"
8.Dd
9.Dt PAC 8
10.Os BSD 4.2
11.Sh NAME
12.Nm pac
13.Nd printer/plotter accounting information
14.Sh SYNOPSIS
15.Nm pac
16.Op Fl P Ns Ar printer
17.Op Fl c
18.Op Fl m
19.Op Fl p Ns Ar price
20.Op Fl s
21.Op Fl r
22.Op Ar name ...
23.Sh DESCRIPTION
24.Nm Pac
25reads the printer/plotter accounting files, accumulating the number
26of pages (the usual case) or feet (for raster devices)
27of paper consumed by each user, and printing out
28how much each user consumed in pages or feet and dollars.
29.Pp
30Options and operands available:
31.Bl -tag -width PPprinter
32.It Fl P Ns Ar printer
33Accounting is done for the named printer.
34Normally, accounting is done for the default printer (site dependent) or
35the value of the environment variable
36.Ev PRINTER
37is used.
38.It Fl c
39flag causes the output to be sorted by cost; usually the
40output is sorted alphabetically by name.
41.It Fl m
42flag causes the host name to be ignored in the accounting file.  This
43allows for a user on multiple machines to have all of his printing
44charges grouped together.
45.It Fl p Ns Ar price
46The value
47.Ar price
48is used for the cost in dollars instead of the default value of 0.02
49or the price specified in
50.Pa /etc/printcap .
51.It Fl r
52Reverse the sorting order.
53.It Fl s
54Accounting information is summarized on the
55summary accounting file; this summarization is necessary since on a
56busy system, the accounting file can grow by several lines per day.
57.It Ar names
58Statistics are only printed for user(s)
59.Ar name ;
60usually, statistics are printed for every user who has used any paper.
61.El
62.Sh FILES
63.Bl -tag -width /var/account/?_sum -compact
64.It Pa /var/account/?acct
65raw accounting files
66.It Pa /var/account/?_sum
67summary accounting files
68.It Pa /etc/printcap
69printer capability data base
70.El
71.Sh SEE ALSO
72.Xr printcap 5
73.Sh BUGS
74The relationship between the computed price and reality is
75as yet unknown.
76.Sh HISTORY
77The
78.Nm
79command appeared in
80.Bx 4.0 .
81