1*ad6756feSbostic.\" Copyright (c) 1983, 1991, 1993 2*ad6756feSbostic.\" The Regents of the University of California. All rights reserved. 39ead28efSmckusick.\" 4b1d21a71Strent.\" %sccs.include.redist.man% 57035d3b0Sbostic.\" 6*ad6756feSbostic.\" @(#)pac.8 8.1 (Berkeley) 06/06/93 79ead28efSmckusick.\" 813251ec2Scael.Dd 913251ec2Scael.Dt PAC 8 1013251ec2Scael.Os BSD 4.2 1113251ec2Scael.Sh NAME 1213251ec2Scael.Nm pac 1313251ec2Scael.Nd printer/plotter accounting information 1413251ec2Scael.Sh SYNOPSIS 1513251ec2Scael.Nm pac 1613251ec2Scael.Op Fl P Ns Ar printer 1713251ec2Scael.Op Fl c 1813251ec2Scael.Op Fl m 1913251ec2Scael.Op Fl p Ns Ar price 2013251ec2Scael.Op Fl s 2113251ec2Scael.Op Fl r 2213251ec2Scael.Op Ar name ... 2313251ec2Scael.Sh DESCRIPTION 2413251ec2Scael.Nm Pac 259ead28efSmckusickreads the printer/plotter accounting files, accumulating the number 269ead28efSmckusickof pages (the usual case) or feet (for raster devices) 279ead28efSmckusickof paper consumed by each user, and printing out 289ead28efSmckusickhow much each user consumed in pages or feet and dollars. 2913251ec2Scael.Pp 3013251ec2ScaelOptions and operands available: 3113251ec2Scael.Bl -tag -width PPprinter 3213251ec2Scael.It Fl P Ns Ar printer 3313251ec2ScaelAccounting is done for the named printer. 349ead28efSmckusickNormally, accounting is done for the default printer (site dependent) or 359ead28efSmckusickthe value of the environment variable 3613251ec2Scael.Ev PRINTER 379ead28efSmckusickis used. 3813251ec2Scael.It Fl c 399ead28efSmckusickflag causes the output to be sorted by cost; usually the 409ead28efSmckusickoutput is sorted alphabetically by name. 4113251ec2Scael.It Fl m 42cfb2fa79Sbloomflag causes the host name to be ignored in the accounting file. This 43cfb2fa79Sbloomallows for a user on multiple machines to have all of his printing 44cfb2fa79Sbloomcharges grouped together. 4513251ec2Scael.It Fl p Ns Ar price 4613251ec2ScaelThe value 4713251ec2Scael.Ar price 4813251ec2Scaelis used for the cost in dollars instead of the default value of 0.02 4913251ec2Scaelor the price specified in 5013251ec2Scael.Pa /etc/printcap . 5113251ec2Scael.It Fl r 5213251ec2ScaelReverse the sorting order. 5313251ec2Scael.It Fl s 5413251ec2ScaelAccounting information is summarized on the 5513251ec2Scaelsummary accounting file; this summarization is necessary since on a 5613251ec2Scaelbusy system, the accounting file can grow by several lines per day. 5713251ec2Scael.It Ar names 5813251ec2ScaelStatistics are only printed for user(s) 5913251ec2Scael.Ar name ; 6013251ec2Scaelusually, statistics are printed for every user who has used any paper. 6113251ec2Scael.El 6213251ec2Scael.Sh FILES 6313251ec2Scael.Bl -tag -width /var/account/?_sum -compact 6413251ec2Scael.It Pa /var/account/?acct 6513251ec2Scaelraw accounting files 6613251ec2Scael.It Pa /var/account/?_sum 6713251ec2Scaelsummary accounting files 6813251ec2Scael.It Pa /etc/printcap 6913251ec2Scaelprinter capability data base 7013251ec2Scael.El 7113251ec2Scael.Sh SEE ALSO 7213251ec2Scael.Xr printcap 5 7313251ec2Scael.Sh BUGS 749ead28efSmckusickThe relationship between the computed price and reality is 759ead28efSmckusickas yet unknown. 7613251ec2Scael.Sh HISTORY 7713251ec2ScaelThe 7813251ec2Scael.Nm 7913251ec2Scaelcommand appeared in 8013251ec2Scael.Bx 4.0 . 81