4.3BSD-UWisc/man/cat8/ac.8

Compare this file to the similar file:
Show the results in this format:




AC(8)               UNIX Programmer's Manual                AC(8)



NAME
     ac - login accounting

SYNOPSIS
     /etc/ac [ -w wtmp ] [ -p ] [ -d ] [ people ] ...

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

     The accounting file /_u_s_r/_a_d_m/_w_t_m_p is maintained by _i_n_i_t and
     _l_o_g_i_n. 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), sa(8), login(1), utmp(5).


























Printed 12/27/86         April 27, 1985                         1