AC(8)

NAME
ac - login accounting

SYNOPSIS
/etc/ac [ -dp ] [ -w file ] [ user... ]

DESCRIPTION
ac(8) lists the connect time for users who have logged in during the life of the wtmp file. Totals over this lifetime, or each midnight-to-midnight period can be produced.

If one or more users are listed, the times printed are limited to those accumulated by those users.

OPTIONS

-d  Print daily totals.

-p  Print individual totals. By default, grand totals are printed.

-w file
    Name a file other than /var/adm/wtmp for login records.

FILES
/var/adm/wtmp

SEE ALSO
login(1), utmp(5), init(8)

NOTES
There is an extra feature included within this version of ac(8) which is not present in the UN*X version, and is available as a compile-time option. A user called shutdown is given special treatment; it is assumed that when this user logs on, the system is brought down, but not logout is ever recorded in the wtmp file for them. The rebooting of the system is used instead of a logout; thus, the `connect' times for this user actually give the amount of time the system has been down. Note that this does not conflict with the shutdown and reboot records placed in the wtmp file by init(8), since they have a ut_line field of `~', whereas login records for the shutdown user have a real terminal line.

AUTHOR
Dave Gymer (dpg@Cs.Nott.AC.UK, until about May 1993).

Based on (but not derived from) the SunOS version.

$Id: ac.8,v 0.1 1992/01/25 19:28:22 dpg Exp $