BSD 4_2 development
[unix-history] / usr / man / man8 / ac.8
CommitLineData
bea22c67
C
1.TH AC 8 "4 February 1983"
2.UC 4
3.SH NAME
4ac \- login accounting
5.SH SYNOPSIS
6.B /etc/ac
7[
8.B \-w
9wtmp ] [
10.B \-p
11] [
12.B \-d
13] [ people ] ...
14.SH DESCRIPTION
15.I Ac
16produces a printout giving
17connect time
18for each user who has logged in
19during the life of the current
20.I wtmp
21file.
22A total is also produced.
23.B \-w
24is used to specify an alternate
25.IR wtmp ""
26file.
27.B \-p
28prints individual totals; without this option,
29only totals are printed.
30.B \-d
31causes a printout for each midnight to midnight
32period.
33Any
34.I people
35will limit the
36printout to only the specified login names.
37If no
38.IR wtmp ""
39file is given,
40.I /usr/adm/wtmp
41is used.
42.PP
43The accounting file
44.I /usr/adm/wtmp
45is maintained by
46.I init
47and
48.I login.
49Neither of these programs creates the file,
50so if it does not exist
51no connect-time accounting is done.
52To start accounting, it should be created with length 0.
53On the other hand if the file is left undisturbed it will
54grow without bound, so periodically any information
55desired should be collected and the file truncated.
56.SH FILES
57/usr/adm/wtmp
58.SH "SEE ALSO"
59init(8), sa(8), login(1), utmp(5).