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