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