Difference between revisions of "32v 1m ac"

From Computer History Wiki
Jump to: navigation, search
(New page: AC(1M) UNIX Programmer's Manual AC(1M) == NAME == ac - login accounting == SYNOPSIS == <pre> ac [ -w wtmp ] [ -p ] [ -d ] [ people ] ... </pre> == DESC...)
 
m
 
Line 33: Line 33:
  
 
== SEE ALSO ==
 
== SEE ALSO ==
     init(8), login(1), utmp(5).
+
     [[32v 8m init|init(8)]], [[32v 1m login|login(1)]], [[32v 5m utmp|utmp(5)]].
  
 
[[Category:32v man section 1]]
 
[[Category:32v man section 1]]

Latest revision as of 13:40, 26 October 2009

AC(1M) UNIX Programmer's Manual AC(1M)


NAME

ac - login accounting

SYNOPSIS

     ac [ -w wtmp ] [ -p ] [ -d ] [ people ] ...

DESCRIPTION

Ac produces a printout giving connect time for each user who has logged in during the life of the current wtmp file. A total is also produced. -w is used to specify an alternate wtmp file. -p prints individual totals; without this option, only totals are printed. -d causes a printout for each midnight to midnight period. Any people will limit the printout to only the specified login names. If no wtmp file is given, /usr/adm/wtmp is used.

The accounting file /usr/adm/wtmp is maintained by init and login. Neither of these programs creates the file, so if it does not exist no connect-time accounting is done. To start accounting, it should be created with length 0. On the other hand if the file is left undisturbed it will grow without bound, so periodically any information desired should be collected and the file truncated.

FILES

    /usr/adm/wtmp

SEE ALSO

    init(8), login(1), utmp(5).