SysIII/usr/src/man/man1/acctcms.1m

.TH ACCTCMS 1M
.SH NAME
acctcms \- command summary from per-process accounting records
.SH SYNOPSIS
.B acctcms
[\^options\^] files
.SH DESCRIPTION
.I Acctcms\^
reads one or more
.IR files ,
normally in the form described in
.IR acct (5).
It adds all records for processes that
executed identically-named commands,
sorts them,
and writes them to the standard output,
normally using an internal summary format.
The \fIoptions\fP are:
.PP
.PD 0
.TP
.B \-a
Print output in
.SM ASCII
rather than in the internal summary format.
The output includes command name,
number of times executed,
total kcore-minutes,
total
.SM CPU
minutes,
total real minutes,
mean size (in K),
mean
.SM CPU
minutes per invocation,
and ``hog factor'', as in
.IR acctcom (1).
Output is normally sorted by total kcore-minutes.
.TP
.B \-c
Sort by total
.SM CPU
time, rather than total kcore-minutes.
.TP
.B \-j
Combine all commands invoked only once under ``\(**\(**\(**other''.
.TP
.B \-n
Sort by number of command invocations.
.TP
.B \-s
Any file names encountered hereafter are already in internal summary format.
.PD
.PP
A typical sequence for performing daily command accounting and
for
maintaining a running total is:
.PP
.RS
.nf
acctcms \|file \|.\|.\|. \|>today
cp \|total \|previoustotal
acctcms \|\-s \|today \|previoustotal \|>total
acctcms \|\-a \|\-s \|today
.fi
.RE
.SH SEE ALSO
acct(1M),
acctcom(1),
acctcon(1M),
acctmerg(1M),
acctprc(1M),
acctsh(1M),
fwtmp(1M),
runacct(1M),
acct(2),
acct(5),
utmp(5).