xref: /csrg-svn/usr.sbin/lpr/pac/pac.8 (revision 61851)
1*61851Sbostic.\" Copyright (c) 1983, 1991, 1993
2*61851Sbostic.\"	The Regents of the University of California.  All rights reserved.
318992Smckusick.\"
443832Strent.\" %sccs.include.redist.man%
518992Smckusick.\"
6*61851Sbostic.\"     @(#)pac.8	8.1 (Berkeley) 06/06/93
735749Sbostic.\"
847469Scael.Dd
947469Scael.Dt PAC 8
1047469Scael.Os BSD 4.2
1147469Scael.Sh NAME
1247469Scael.Nm pac
1347469Scael.Nd printer/plotter accounting information
1447469Scael.Sh SYNOPSIS
1547469Scael.Nm pac
1647469Scael.Op Fl P Ns Ar printer
1747469Scael.Op Fl c
1847469Scael.Op Fl m
1947469Scael.Op Fl p Ns Ar price
2047469Scael.Op Fl s
2147469Scael.Op Fl r
2247469Scael.Op Ar name ...
2347469Scael.Sh DESCRIPTION
2447469Scael.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.
2947469Scael.Pp
3047469ScaelOptions and operands available:
3147469Scael.Bl -tag -width PPprinter
3247469Scael.It Fl P Ns Ar printer
3347469ScaelAccounting is done for the named printer.
3418992SmckusickNormally, accounting is done for the default printer (site dependent) or
3518992Smckusickthe value of the environment variable
3647469Scael.Ev PRINTER
3718992Smckusickis used.
3847469Scael.It Fl c
3918992Smckusickflag causes the output to be sorted by cost; usually the
4018992Smckusickoutput is sorted alphabetically by name.
4147469Scael.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.
4547469Scael.It Fl p Ns Ar price
4647469ScaelThe value
4747469Scael.Ar price
4847469Scaelis used for the cost in dollars instead of the default value of 0.02
4947469Scaelor the price specified in
5047469Scael.Pa /etc/printcap .
5147469Scael.It Fl r
5247469ScaelReverse the sorting order.
5347469Scael.It Fl s
5447469ScaelAccounting information is summarized on the
5547469Scaelsummary accounting file; this summarization is necessary since on a
5647469Scaelbusy system, the accounting file can grow by several lines per day.
5747469Scael.It Ar names
5847469ScaelStatistics are only printed for user(s)
5947469Scael.Ar name ;
6047469Scaelusually, statistics are printed for every user who has used any paper.
6147469Scael.El
6247469Scael.Sh FILES
6347469Scael.Bl -tag -width /var/account/?_sum -compact
6447469Scael.It Pa /var/account/?acct
6547469Scaelraw accounting files
6647469Scael.It Pa /var/account/?_sum
6747469Scaelsummary accounting files
6847469Scael.It Pa /etc/printcap
6947469Scaelprinter capability data base
7047469Scael.El
7147469Scael.Sh SEE ALSO
7247469Scael.Xr printcap 5
7347469Scael.Sh BUGS
7418992SmckusickThe relationship between the computed price and reality is
7518992Smckusickas yet unknown.
7647469Scael.Sh HISTORY
7747469ScaelThe
7847469Scael.Nm
7947469Scaelcommand appeared in
8047469Scael.Bx 4.0 .
81