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.\" @(#)pac.8 8.1 (Berkeley) 6/6/93 2997d92980SPeter Wemm.\" $FreeBSD$ 30dea673e9SRodney W. Grimes.\" 31dea673e9SRodney W. Grimes.Dd June 6, 1993 32dea673e9SRodney W. Grimes.Dt PAC 8 33a4c37c81SRuslan Ermilov.Os 34dea673e9SRodney W. Grimes.Sh NAME 35dea673e9SRodney W. Grimes.Nm pac 36dea673e9SRodney W. Grimes.Nd printer/plotter accounting information 37dea673e9SRodney W. Grimes.Sh SYNOPSIS 38e97407b4SRuslan Ermilov.Nm 39dea673e9SRodney W. Grimes.Op Fl P Ns Ar printer 40dea673e9SRodney W. Grimes.Op Fl c 41dea673e9SRodney W. Grimes.Op Fl m 42dea673e9SRodney W. Grimes.Op Fl p Ns Ar price 43dea673e9SRodney W. Grimes.Op Fl s 44dea673e9SRodney W. Grimes.Op Fl r 45dea673e9SRodney W. Grimes.Op Ar name ... 46dea673e9SRodney W. Grimes.Sh DESCRIPTION 47490d5836SPhilippe CharnierThe 48490d5836SPhilippe Charnier.Nm 49490d5836SPhilippe Charnierutility reads the printer/plotter accounting files, accumulating the number 50dea673e9SRodney W. Grimesof pages (the usual case) or feet (for raster devices) 51dea673e9SRodney W. Grimesof paper consumed by each user, and printing out 52dea673e9SRodney W. Grimeshow much each user consumed in pages or feet and dollars. 53dea673e9SRodney W. Grimes.Pp 54dea673e9SRodney W. GrimesOptions and operands available: 55dea673e9SRodney W. Grimes.Bl -tag -width PPprinter 56dea673e9SRodney W. Grimes.It Fl P Ns Ar printer 57dea673e9SRodney W. GrimesAccounting is done for the named printer. 58dea673e9SRodney W. GrimesNormally, accounting is done for the default printer (site dependent) or 59dea673e9SRodney W. Grimesthe value of the environment variable 60dea673e9SRodney W. Grimes.Ev PRINTER 61dea673e9SRodney W. Grimesis used. 62dea673e9SRodney W. Grimes.It Fl c 639b3fe531SPhilippe CharnierCause the output to be sorted by cost; usually the 64dea673e9SRodney W. Grimesoutput is sorted alphabetically by name. 65dea673e9SRodney W. Grimes.It Fl m 6607bfccd7SRuslan ErmilovCause the host name to be ignored in the accounting file. 6707bfccd7SRuslan ErmilovThis 68dea673e9SRodney W. Grimesallows for a user on multiple machines to have all of his printing 69dea673e9SRodney W. Grimescharges grouped together. 70dea673e9SRodney W. Grimes.It Fl p Ns Ar price 71dea673e9SRodney W. GrimesThe value 72dea673e9SRodney W. Grimes.Ar price 73dea673e9SRodney W. Grimesis used for the cost in dollars instead of the default value of 0.02 74dea673e9SRodney W. Grimesor the price specified in 75dea673e9SRodney W. Grimes.Pa /etc/printcap . 76dea673e9SRodney W. Grimes.It Fl r 77dea673e9SRodney W. GrimesReverse the sorting order. 78dea673e9SRodney W. Grimes.It Fl s 79dea673e9SRodney W. GrimesAccounting information is summarized on the 80dea673e9SRodney W. Grimessummary accounting file; this summarization is necessary since on a 81dea673e9SRodney W. Grimesbusy system, the accounting file can grow by several lines per day. 82dea673e9SRodney W. Grimes.It Ar names 83dea673e9SRodney W. GrimesStatistics are only printed for user(s) 84dea673e9SRodney W. Grimes.Ar name ; 85dea673e9SRodney W. Grimesusually, statistics are printed for every user who has used any paper. 86dea673e9SRodney W. Grimes.El 87dea673e9SRodney W. Grimes.Sh FILES 88dea673e9SRodney W. Grimes.Bl -tag -width /var/account/?_sum -compact 89dea673e9SRodney W. Grimes.It Pa /var/account/?acct 90dea673e9SRodney W. Grimesraw accounting files 91dea673e9SRodney W. Grimes.It Pa /var/account/?_sum 92dea673e9SRodney W. Grimessummary accounting files 93dea673e9SRodney W. Grimes.It Pa /etc/printcap 94dea673e9SRodney W. Grimesprinter capability data base 95dea673e9SRodney W. Grimes.El 96dea673e9SRodney W. Grimes.Sh SEE ALSO 97dea673e9SRodney W. Grimes.Xr printcap 5 98dea673e9SRodney W. Grimes.Sh HISTORY 99dea673e9SRodney W. GrimesThe 100dea673e9SRodney W. Grimes.Nm 101490d5836SPhilippe Charnierutility appeared in 102dea673e9SRodney W. Grimes.Bx 4.0 . 10359a3c79dSRuslan Ermilov.Sh BUGS 10459a3c79dSRuslan ErmilovThe relationship between the computed price and reality is 10559a3c79dSRuslan Ermilovas yet unknown. 106