xref: /csrg-svn/usr.sbin/lpr/pac/pac.8 (revision 47469)
1*47469Scael.\" Copyright (c) 1983, 1991 The Regents of the University of California.
235749Sbostic.\" All rights reserved.
318992Smckusick.\"
443832Strent.\" %sccs.include.redist.man%
518992Smckusick.\"
6*47469Scael.\"     @(#)pac.8	6.5 (Berkeley) 03/16/91
735749Sbostic.\"
8*47469Scael.Dd
9*47469Scael.Dt PAC 8
10*47469Scael.Os BSD 4.2
11*47469Scael.Sh NAME
12*47469Scael.Nm pac
13*47469Scael.Nd printer/plotter accounting information
14*47469Scael.Sh SYNOPSIS
15*47469Scael.Nm pac
16*47469Scael.Op Fl P Ns Ar printer
17*47469Scael.Op Fl c
18*47469Scael.Op Fl m
19*47469Scael.Op Fl p Ns Ar price
20*47469Scael.Op Fl s
21*47469Scael.Op Fl r
22*47469Scael.Op Ar name ...
23*47469Scael.Sh DESCRIPTION
24*47469Scael.Nm Pac
2518992Smckusickreads the printer/plotter accounting files, accumulating the number
2618992Smckusickof pages (the usual case) or feet (for raster devices)
2718992Smckusickof paper consumed by each user, and printing out
2818992Smckusickhow much each user consumed in pages or feet and dollars.
29*47469Scael.Pp
30*47469ScaelOptions and operands available:
31*47469Scael.Bl -tag -width PPprinter
32*47469Scael.It Fl P Ns Ar printer
33*47469ScaelAccounting is done for the named printer.
3418992SmckusickNormally, accounting is done for the default printer (site dependent) or
3518992Smckusickthe value of the environment variable
36*47469Scael.Ev PRINTER
3718992Smckusickis used.
38*47469Scael.It Fl c
3918992Smckusickflag causes the output to be sorted by cost; usually the
4018992Smckusickoutput is sorted alphabetically by name.
41*47469Scael.It Fl m
4225338Sbloomflag causes the host name to be ignored in the accounting file.  This
4325338Sbloomallows for a user on multiple machines to have all of his printing
4425338Sbloomcharges grouped together.
45*47469Scael.It Fl p Ns Ar price
46*47469ScaelThe value
47*47469Scael.Ar price
48*47469Scaelis used for the cost in dollars instead of the default value of 0.02
49*47469Scaelor the price specified in
50*47469Scael.Pa /etc/printcap .
51*47469Scael.It Fl r
52*47469ScaelReverse the sorting order.
53*47469Scael.It Fl s
54*47469ScaelAccounting information is summarized on the
55*47469Scaelsummary accounting file; this summarization is necessary since on a
56*47469Scaelbusy system, the accounting file can grow by several lines per day.
57*47469Scael.It Ar names
58*47469ScaelStatistics are only printed for user(s)
59*47469Scael.Ar name ;
60*47469Scaelusually, statistics are printed for every user who has used any paper.
61*47469Scael.El
62*47469Scael.Sh FILES
63*47469Scael.Bl -tag -width /var/account/?_sum -compact
64*47469Scael.It Pa /var/account/?acct
65*47469Scaelraw accounting files
66*47469Scael.It Pa /var/account/?_sum
67*47469Scaelsummary accounting files
68*47469Scael.It Pa /etc/printcap
69*47469Scaelprinter capability data base
70*47469Scael.El
71*47469Scael.Sh SEE ALSO
72*47469Scael.Xr printcap 5
73*47469Scael.Sh BUGS
7418992SmckusickThe relationship between the computed price and reality is
7518992Smckusickas yet unknown.
76*47469Scael.Sh HISTORY
77*47469ScaelThe
78*47469Scael.Nm
79*47469Scaelcommand appeared in
80*47469Scael.Bx 4.0 .
81