1dea673e9SRodney W. Grimes.\" Copyright (c) 1983, 1991, 1993 2dea673e9SRodney W. Grimes.\" The Regents of the University of California. All rights reserved. 3dea673e9SRodney W. Grimes.\" 4dea673e9SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without 5dea673e9SRodney W. Grimes.\" modification, are permitted provided that the following conditions 6dea673e9SRodney W. Grimes.\" are met: 7dea673e9SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright 8dea673e9SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer. 9dea673e9SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright 10dea673e9SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer in the 11dea673e9SRodney W. Grimes.\" documentation and/or other materials provided with the distribution. 12*fbbd9655SWarner Losh.\" 3. Neither the name of the University nor the names of its contributors 13dea673e9SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 14dea673e9SRodney W. Grimes.\" without specific prior written permission. 15dea673e9SRodney W. Grimes.\" 16dea673e9SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 17dea673e9SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18dea673e9SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19dea673e9SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 20dea673e9SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21dea673e9SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22dea673e9SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23dea673e9SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24dea673e9SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25dea673e9SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26dea673e9SRodney W. Grimes.\" SUCH DAMAGE. 27dea673e9SRodney W. Grimes.\" 28dea673e9SRodney W. Grimes.Dd June 6, 1993 29dea673e9SRodney W. Grimes.Dt PAC 8 30a4c37c81SRuslan Ermilov.Os 31dea673e9SRodney W. Grimes.Sh NAME 32dea673e9SRodney W. Grimes.Nm pac 33dea673e9SRodney W. Grimes.Nd printer/plotter accounting information 34dea673e9SRodney W. Grimes.Sh SYNOPSIS 35e97407b4SRuslan Ermilov.Nm 36dea673e9SRodney W. Grimes.Op Fl P Ns Ar printer 37dea673e9SRodney W. Grimes.Op Fl c 38dea673e9SRodney W. Grimes.Op Fl m 39dea673e9SRodney W. Grimes.Op Fl p Ns Ar price 40dea673e9SRodney W. Grimes.Op Fl s 41dea673e9SRodney W. Grimes.Op Fl r 42dea673e9SRodney W. Grimes.Op Ar name ... 43dea673e9SRodney W. Grimes.Sh DESCRIPTION 44490d5836SPhilippe CharnierThe 45490d5836SPhilippe Charnier.Nm 46490d5836SPhilippe Charnierutility reads the printer/plotter accounting files, accumulating the number 47dea673e9SRodney W. Grimesof pages (the usual case) or feet (for raster devices) 48dea673e9SRodney W. Grimesof paper consumed by each user, and printing out 49dea673e9SRodney W. Grimeshow much each user consumed in pages or feet and dollars. 50dea673e9SRodney W. Grimes.Pp 51dea673e9SRodney W. GrimesOptions and operands available: 52dea673e9SRodney W. Grimes.Bl -tag -width PPprinter 53dea673e9SRodney W. Grimes.It Fl P Ns Ar printer 54dea673e9SRodney W. GrimesAccounting is done for the named printer. 55dea673e9SRodney W. GrimesNormally, accounting is done for the default printer (site dependent) or 56dea673e9SRodney W. Grimesthe value of the environment variable 57dea673e9SRodney W. Grimes.Ev PRINTER 58dea673e9SRodney W. Grimesis used. 59dea673e9SRodney W. Grimes.It Fl c 609b3fe531SPhilippe CharnierCause the output to be sorted by cost; usually the 61dea673e9SRodney W. Grimesoutput is sorted alphabetically by name. 62dea673e9SRodney W. Grimes.It Fl m 6307bfccd7SRuslan ErmilovCause the host name to be ignored in the accounting file. 6407bfccd7SRuslan ErmilovThis 65dea673e9SRodney W. Grimesallows for a user on multiple machines to have all of his printing 66dea673e9SRodney W. Grimescharges grouped together. 67dea673e9SRodney W. Grimes.It Fl p Ns Ar price 68dea673e9SRodney W. GrimesThe value 69dea673e9SRodney W. Grimes.Ar price 70dea673e9SRodney W. Grimesis used for the cost in dollars instead of the default value of 0.02 71dea673e9SRodney W. Grimesor the price specified in 72dea673e9SRodney W. Grimes.Pa /etc/printcap . 73dea673e9SRodney W. Grimes.It Fl r 74dea673e9SRodney W. GrimesReverse the sorting order. 75dea673e9SRodney W. Grimes.It Fl s 76dea673e9SRodney W. GrimesAccounting information is summarized on the 77dea673e9SRodney W. Grimessummary accounting file; this summarization is necessary since on a 78dea673e9SRodney W. Grimesbusy system, the accounting file can grow by several lines per day. 79dea673e9SRodney W. Grimes.It Ar names 80dea673e9SRodney W. GrimesStatistics are only printed for user(s) 81dea673e9SRodney W. Grimes.Ar name ; 82dea673e9SRodney W. Grimesusually, statistics are printed for every user who has used any paper. 83dea673e9SRodney W. Grimes.El 84dea673e9SRodney W. Grimes.Sh FILES 85dea673e9SRodney W. Grimes.Bl -tag -width /var/account/?_sum -compact 86dea673e9SRodney W. Grimes.It Pa /var/account/?acct 87dea673e9SRodney W. Grimesraw accounting files 88dea673e9SRodney W. Grimes.It Pa /var/account/?_sum 89dea673e9SRodney W. Grimessummary accounting files 90dea673e9SRodney W. Grimes.It Pa /etc/printcap 91dea673e9SRodney W. Grimesprinter capability data base 92dea673e9SRodney W. Grimes.El 93dea673e9SRodney W. Grimes.Sh SEE ALSO 94dea673e9SRodney W. Grimes.Xr printcap 5 95dea673e9SRodney W. Grimes.Sh HISTORY 96dea673e9SRodney W. GrimesThe 97dea673e9SRodney W. Grimes.Nm 98490d5836SPhilippe Charnierutility appeared in 99dea673e9SRodney W. Grimes.Bx 4.0 . 10059a3c79dSRuslan Ermilov.Sh BUGS 10159a3c79dSRuslan ErmilovThe relationship between the computed price and reality is 10259a3c79dSRuslan Ermilovas yet unknown. 103