X-Git-Url: https://git.saurik.com/apple/system_cmds.git/blobdiff_plain/709a58224ea43109dc10bfd6a67de1e432174197..34d340d711a2b033f5da480ed7b5eb147679a588:/ac.tproj/ac.8 diff --git a/ac.tproj/ac.8 b/ac.tproj/ac.8 index 0c834a7..dd40a55 100644 --- a/ac.tproj/ac.8 +++ b/ac.tproj/ac.8 @@ -36,7 +36,7 @@ .Os BSD 4 .Sh NAME .Nm ac -.Nd display connect time accounting +.Nd display connect-time accounting .Sh SYNOPSIS .Nm ac .Op Fl d @@ -44,20 +44,17 @@ .Op Fl w Ar file .Op Ar users ... .Sh DESCRIPTION -If the file -.Pa /var/log/wtmp -exists, -a record of individual -login and logout times are written to it by -.Xr init 8 -and +A record of individual +login and logout times are written to the system log by .Xr login 8 +and +.Xr launchd 8 , respectively. The program .Nm ac -examines these -records and writes the accumulated connect time for all logins to the -standard output. +examines these records +and writes the accumulated connect time (in decimal hours) +for all logins to the standard output. .Pp Options available: .Bl -tag -width people @@ -67,41 +64,23 @@ Display the connect times in 24 hour chunks. Display individual user totals. .It Fl w Ar file Read raw connect time data from -.Ar file -instead of the default file -.Pa /var/log/wtmp . +.Ar file , +instead of the system log. .It Ar users ... Display totals for the given individuals only. .El .Pp If no arguments are given, -.Nm -displays the total amount of login time for all active accounts on the -system. -.Pp -The default -.Pa wtmp -file is an infinitely increasing file -unless frequently truncated. This is normally -done by the daily daemon scripts scheduled by -.Xr cron 8 -which rename and rotate the -.Pa wtmp -files before truncating them (and keeping about a weeks worth on hand). -No login times are collected however, if the file does not exist. -.Sh FILES -.Bl -tag -width /var/log/wtmp.[0-7] -compact -.It Pa /var/log/wtmp -.It Pa /var/log/wtmp.[0-7] -rotated files -.El +.Nm ac +displays the total amount of login time +for all active accounts on the system. .Sh SEE ALSO -.Xr init 8 , -.Xr sa 8 , .Xr login 1 , -.Xr utmp 5 . +.Xr utmpx 5 , +.Xr launchd 8 , +.Xr sa 8 .Sh HISTORY -A -.Nm +An +.Nm ac command appeared in Version 6 AT&T UNIX.