LNEXT
ONELCLEAN
UTERMINAL
TERMINAL
NEXT
$V1$
HILINE
PAUSE
q to quit, <CR> to continue
LIBACCT
acct lastlog messages newsyslog savacct usracct
aculog lgpacct msgbuf rlogin shutdownlog wtmp
ACCTDIR
/usr
|
|
adm
|
|
------------------------------------
| | | |
| | | |
acct wtmp shutdownlog ...
GO
The actions of the accounting system may be viewed as follows:
At process termination, the system kernel writes one record
per process into the process time accounting file.
1. The login and init programs record connect sessions by
writing records into the connect time accounting file.
2. The ac program looks at the connect time accounting file
and produces a printout of connect time for each user.
3. The sa program condenses the information in the
process time accounting file and places it in summary files.
4. If you want to charge for computing time, you would place the
/etc/ac and /etc/sa commands in the /usr/lib/crontab
file and let cron execute them at a certain time each day.