Commit | Line | Data |
---|---|---|
929f44b0 KB |
1 | .\" Copyright (c) 1983 The Regents of the University of California. |
2 | .\" All rights reserved. | |
3243ec2f | 3 | .\" |
929f44b0 KB |
4 | .\" Redistribution and use in source and binary forms are permitted |
5 | .\" provided that the above copyright notice and this paragraph are | |
6 | .\" duplicated in all such forms and that any documentation, | |
7 | .\" advertising materials, and other materials related to such | |
8 | .\" distribution and use acknowledge that the software was developed | |
9 | .\" by the University of California, Berkeley. The name of the | |
10 | .\" University may not be used to endorse or promote products derived | |
11 | .\" from this software without specific prior written permission. | |
12 | .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
13 | .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
14 | .\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
15 | .\" | |
16 | .\" @(#)pac.8 6.3 (Berkeley) %G% | |
3243ec2f | 17 | .\" |
0e7bb7ec | 18 | .TH PAC 8 "" |
3243ec2f KM |
19 | .UC 5 |
20 | .SH NAME | |
b72ae9bc | 21 | pac \- printer/plotter accounting information |
3243ec2f KM |
22 | .SH SYNOPSIS |
23 | .B /etc/pac | |
24 | [ | |
25 | .B \-Pprinter | |
26 | ] [ | |
27 | .B \-pprice | |
28 | ] [ | |
29 | .B \-s | |
30 | ] [ | |
31 | .B \-r | |
32 | ] [ | |
33 | .B \-c | |
b72ae9bc JB |
34 | ] [ |
35 | .B \-m | |
3243ec2f KM |
36 | ] [ name ... ] |
37 | .SH DESCRIPTION | |
38 | .I Pac | |
39 | reads the printer/plotter accounting files, accumulating the number | |
40 | of pages (the usual case) or feet (for raster devices) | |
41 | of paper consumed by each user, and printing out | |
42 | how much each user consumed in pages or feet and dollars. | |
43 | If any | |
44 | .I names | |
45 | are specified, then statistics are only printed for those users; | |
46 | usually, statistics are printed for every user who has used any paper. | |
47 | .PP | |
48 | The | |
49 | .B \-P | |
50 | flag causes accounting to be done for the named printer. | |
51 | Normally, accounting is done for the default printer (site dependent) or | |
52 | the value of the environment variable | |
53 | .B PRINTER | |
54 | is used. | |
55 | .PP | |
56 | The | |
57 | .B \-p | |
58 | flag causes the value | |
59 | .I price | |
b72ae9bc JB |
60 | to be used for the cost in dollars instead of the default value of 0.02 |
61 | or the price specified in | |
62 | .IR /etc/printcap. | |
3243ec2f KM |
63 | .PP |
64 | The | |
65 | .B \-c | |
66 | flag causes the output to be sorted by cost; usually the | |
67 | output is sorted alphabetically by name. | |
68 | .PP | |
69 | The | |
70 | .B \-r | |
71 | flag reverses the sorting order. | |
72 | .PP | |
73 | The | |
74 | .B \-s | |
75 | flag causes the accounting information to be summarized on the | |
76 | summary accounting file; this summarization is necessary since on a | |
77 | busy system, the accounting file can grow by several lines per day. | |
b72ae9bc JB |
78 | .PP |
79 | The | |
80 | .B \-m | |
81 | flag causes the host name to be ignored in the accounting file. This | |
82 | allows for a user on multiple machines to have all of his printing | |
83 | charges grouped together. | |
3243ec2f KM |
84 | .SH FILES |
85 | .ta 2i | |
86 | /usr/adm/?acct raw accounting files | |
87 | .br | |
88 | /usr/adm/?_sum summary accounting files | |
0e7bb7ec KM |
89 | .br |
90 | /etc/printcap printer capability data base | |
91 | .SH SEE ALSO | |
92 | printcap(5) | |
3243ec2f KM |
93 | .SH BUGS |
94 | The relationship between the computed price and reality is | |
95 | as yet unknown. |