AC(8) NetBSD System Manager's Manual AC(8) NNAAMMEE aacc - connect time accounting SSYYNNOOPPSSIISS aacc [--ddpp] [--tt _t_t_y] [--ww _w_t_m_p] [_u_s_e_r_s _._._.] DDEESSCCRRIIPPTTIIOONN If the file _/_v_a_r_/_l_o_g_/_w_t_m_p exists, a record of individual login and logout times are written to it by login(8) and init(8), respectively. AAcc exam- ines these records and writes the accumulated connect time for all logins to the standard output. The options are as follows: --dd Display the connect times in 24 hour chunks. --pp Print individual users' totals. --tt _t_t_y Only do accounting logins on certain ttys. The _t_t_y specifica- tion can start with '!' to indicate not this _t_t_y and end with '*' to indicate all similarly named ttys. Multiple --tt flags may be specified. --ww _w_t_m_p Read connect time data from _w_t_m_p instead of the default file, _/_v_a_r_/_l_o_g_/_w_t_m_p. _u_s_e_r_s _._._. Display totals for the given individuals only. If no arguments are given, aacc displays the total connect time for all ac- counts with login sessions recorded in _w_t_m_p. The default _w_t_m_p file will increase without bound unless it is truncated. It is normally truncated by the daily scripts run by cron(8), which re- name and rotate the _w_t_m_p files, keeping a week's worth of data on hand. No login or connect time accounting is performed if _/_v_a_r_/_l_o_g_/_w_t_m_p does not exist. For example, ac -p -t "ttyd*" > modems ac -p -t "!ttyd*" > other allows times recorded in _m_o_d_e_m_s to be charged out at a different rate than _o_t_h_e_r. The aacc utility exits 0 on success, and >0 if a fatal error occurs. FFIILLEESS /var/log/wtmp connect time accounting file /var/log/wtmp.[0-7] rotated files SSEEEE AALLSSOO init(8), sa(8), login(1), utmp HHIISSTTOORRYY An aacc command appeard in Version 6 AT&T UNIX. This version of aacc was written for NetBSD 0.9a from the specification provided by various sys- tems' manual pages. NetBSD 0.9a Experimental October 19, 1994 1