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