2004-11-03 13:51:07 +00:00
|
|
|
.\" Copyright (c) 1995 Dirk Eddelbuettel (Dirk.Eddelbuettel@qed.econ.queensu.ca)
|
|
|
|
.\"
|
|
|
|
.\" This is free documentation; you can redistribute it and/or
|
|
|
|
.\" modify it under the terms of the GNU General Public License as
|
|
|
|
.\" published by the Free Software Foundation; either version 2 of
|
|
|
|
.\" the License, or (at your option) any later version.
|
|
|
|
.\"
|
|
|
|
.\" The GNU General Public License's references to "object code"
|
|
|
|
.\" and "executables" are to be interpreted as the output of any
|
|
|
|
.\" document formatting or typesetting system, including
|
|
|
|
.\" intermediate and printed output.
|
|
|
|
.\"
|
|
|
|
.\" This manual is distributed in the hope that it will be useful,
|
|
|
|
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
.\" GNU General Public License for more details.
|
|
|
|
.\"
|
|
|
|
.\" You should have received a copy of the GNU General Public
|
|
|
|
.\" License along with this manual; if not, write to the Free
|
|
|
|
.\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
|
|
|
|
.\" USA.
|
|
|
|
.\"
|
2005-04-21 09:11:01 +00:00
|
|
|
.\" FIXME this page needs to say a lot more, including mentioning
|
|
|
|
.\" Version 3 format process accounting on Linux.
|
2004-11-03 13:51:07 +00:00
|
|
|
.TH ACCT 5 2003-11-01 "Linux" "Linux Programmer's Manual"
|
|
|
|
.SH NAME
|
|
|
|
acct \- execution accounting file
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B #include <sys/acct.h>
|
|
|
|
.SH DESCRIPTION
|
|
|
|
If the kernel was compiled with the process accounting option enabled,
|
|
|
|
the system call
|
|
|
|
.RS
|
|
|
|
acct("/somewhere/accountingfile");
|
|
|
|
.RE
|
|
|
|
will start the process accounting. Each time a process terminates
|
|
|
|
a record for this process is appended to the accounting file.
|
|
|
|
The accounting structure
|
2005-11-02 13:55:25 +00:00
|
|
|
.I "struct acct"
|
2004-11-03 13:51:07 +00:00
|
|
|
is also described in the file
|
|
|
|
.IR /usr/include/linux/acct.h .
|
|
|
|
.SH "SEE ALSO"
|
2005-04-21 09:11:01 +00:00
|
|
|
.BR lastcomm (1),
|
2004-11-03 13:51:07 +00:00
|
|
|
.BR sa (1),
|
2005-04-21 09:11:01 +00:00
|
|
|
.BR acct (2),
|
|
|
|
.BR accton (8).
|