1.\" $NetBSD: pac.8,v 1.9 2002/01/19 03:24:14 wiz Exp $ 2.\" 3.\" Copyright (c) 1983, 1991, 1993 4.\" The Regents of the University of California. All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 3. All advertising materials mentioning features or use of this software 15.\" must display the following acknowledgement: 16.\" This product includes software developed by the University of 17.\" California, Berkeley and its contributors. 18.\" 4. Neither the name of the University nor the names of its contributors 19.\" may be used to endorse or promote products derived from this software 20.\" without specific prior written permission. 21.\" 22.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32.\" SUCH DAMAGE. 33.\" 34.\" @(#)pac.8 8.1 (Berkeley) 6/6/93 35.\" 36.Dd June 6, 1993 37.Dt PAC 8 38.Os 39.Sh NAME 40.Nm pac 41.Nd printer/plotter accounting information 42.Sh SYNOPSIS 43.Nm "" 44.Op Fl cmrs 45.Bk -words 46.Op Fl P Ar printer 47.Ek 48.Bk -words 49.Op Fl p Ar price 50.Ek 51.Op Ar name ... 52.Sh DESCRIPTION 53.Nm 54reads the printer/plotter accounting files, accumulating the number 55of pages (the usual case) or feet (for raster devices) 56of paper consumed by each user, and printing out 57how much each user consumed in pages or feet and dollars. 58.Pp 59Options and operands available: 60.Bl -tag -width PPprinter 61.It Fl P Ns Ar printer 62Accounting is done for the named printer. 63Normally, accounting is done for the default printer (site dependent) or 64the value of the environment variable 65.Ev PRINTER 66is used. 67.It Fl c 68flag causes the output to be sorted by cost; usually the 69output is sorted alphabetically by name. 70.It Fl m 71flag causes the host name to be ignored in the accounting file. This 72allows for a user on multiple machines to have all of his printing 73charges grouped together. 74.It Fl p Ns Ar price 75The value 76.Ar price 77is used for the cost in dollars instead of the default value of 0.02 78or the price specified in 79.Pa /etc/printcap . 80.It Fl r 81Reverse the sorting order. 82.It Fl s 83Accounting information is summarized on the 84summary accounting file; this summarization is necessary since on a 85busy system, the accounting file can grow by several lines per day. 86.It Ar names 87Statistics are only printed for user(s) 88.Ar name ; 89usually, statistics are printed for every user who has used any paper. 90.El 91.Sh OUTPUT FORMAT 92.Nm 93formats the output into simple table, using four columns - number of feets 94or pages (column "pages/feet"), how many copies were made (column "runs"), 95total price for this print (column "price") and user login with host name 96(column "login" or "host name and login"). If argument 97.Ar name 98was not used and hence 99.Nm 100is printing information for all users, 101a summary line with print totals (runs, pages, price) is appended. 102.Pp 103Note that 104.Nm 105on other system might print the price as price per copy. 106.Sh FILES 107.Bl -tag -width /var/account/?_sum -compact 108.It Pa /var/account/?acct 109raw accounting files 110.It Pa /var/account/?_sum 111summary accounting files 112.It Pa /etc/printcap 113printer capability data base 114.El 115.Sh SEE ALSO 116.Xr printcap 5 117.Sh HISTORY 118The 119.Nm 120command appeared in 121.Bx 4.0 . 122.Sh BUGS 123The relationship between the computed price and reality is 124as yet unknown. 125