1 .\" $NetBSD: ac.8,v 1.15 2003/06/27 22:53:52 wiz Exp $
3 .\" Copyright (c) 1980, 1991, 1993
4 .\" The Regents of the University of California. All rights reserved.
5 .\" Copyright (c) 1994 Simon J. Gerraty
6 .\" Copyright (c) 1994 Christopher G. Demetriou
7 .\" All rights reserved.
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
17 .\" 3. All advertising materials mentioning features or use of this software
18 .\" must display the following acknowledgements:
19 .\" This product includes software developed by the University of
20 .\" California, Berkeley and its contributors.
21 .\" This product includes software developed by Christopher G. Demetriou.
22 .\" 4. Neither the name of the University nor the names of its contributors
23 .\" may be used to endorse or promote products derived from this software
24 .\" without specific prior written permission.
26 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
27 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
30 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38 .\" @(#)ac.8 8.2 (Berkeley) 4/19/94
45 .Nd display connect time accounting
56 a record of individual
57 login and logout times are written to it by
65 records and writes the accumulated connect time for all logins to the
69 .Bl -tag -width indentXXX
71 Display the connect times in 24 hour chunks.
73 Display individual user totals.
75 Only do accounting logins on certain ttys. The
77 specification can start with
83 to indicate all similarly named ttys.
86 flags may be specified.
88 Read raw connect time data from
90 instead of the default file
93 Display totals for the given individuals
97 If no arguments are given,
99 displays the total amount of login time for all active accounts on the
104 file is an infinitely increasing file
105 unless frequently truncated. This is normally
106 done by the daily daemon scripts scheduled by
108 which rename and rotate the
110 files before truncating them (and keep about a week's worth on hand).
111 No login times are collected, however, if the file does not exist.
114 .Bd -literal -offset indent
115 ac -p -t "ttyd*" \*[Gt] modems
116 ac -p -t "!ttyd*" \*[Gt] other
119 allows times recorded in
121 to be charged out at a different rate than
126 utility exits 0 on success, and \*[Gt]0 if a fatal error occurs.
128 .Bl -tag -width /var/log/wtmp.[0-7] -compact
130 connect time accounting file
131 .It Pa /var/log/wtmp.[0-7]
148 from the specification provided by various systems' manual pages.