Unix and Linux Discussions Tagged with accounting |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
3 |
2,807 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
1,207 |
Software Releases - RSS News |
|
|
|
0 |
1,092 |
Software Releases - RSS News |
|
|
|
0 |
831 |
Software Releases - RSS News |
|
|
|
0 |
837 |
Software Releases - RSS News |
|
|
|
0 |
2,001 |
Software Releases - RSS News |
|
|
|
0 |
1,102 |
Software Releases - RSS News |
|
|
|
0 |
948 |
Software Releases - RSS News |
|
|
|
0 |
1,034 |
Software Releases - RSS News |
|
|
|
0 |
770 |
Software Releases - RSS News |
|
|
|
0 |
945 |
Software Releases - RSS News |
|
|
|
0 |
778 |
Software Releases - RSS News |
|
|
|
0 |
1,497 |
UNIX and Linux RSS News |
|
|
|
3 |
4,093 |
Windows & DOS: Issues & Discussions |
|
|
|
0 |
1,269 |
UNIX and Linux RSS News |
|
|
|
0 |
883 |
Software Releases - RSS News |
|
|
|
0 |
970 |
Software Releases - RSS News |
|
|
|
0 |
1,041 |
Software Releases - RSS News |
|
|
|
0 |
1,125 |
Software Releases - RSS News |
|
|
|
0 |
1,164 |
Software Releases - RSS News |
|
|
|
0 |
1,093 |
Software Releases - RSS News |
|
|
|
0 |
1,244 |
Software Releases - RSS News |
|
|
|
0 |
811 |
Software Releases - RSS News |
|
|
|
0 |
1,094 |
Software Releases - RSS News |
|
|
|
0 |
1,076 |
Software Releases - RSS News |
|
|
|
2 |
8,425 |
Cybersecurity |
|
|
|
1 |
3,240 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
4,651 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
5,978 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
21,356 |
UNIX for Dummies Questions & Answers |
acct(2) System Calls Manual acct(2)
NAME
acct - Enables and disables process accounting
SYNOPSIS
int acct ( char *path );
PARAMETERS
Specifies a pointer to the pathname of the file, or specifies a null pointer.
DESCRIPTION
The acct() function enables and disables UNIX process accounting. When enabled, process accounting produces an accounting record on behalf
of each terminating process. The path parameter specifies the pathname of the file to which an accounting record is written. When the
path parameter is 0 (zero) or a null value, the acct() function disables the accounting routine.
If the path parameter refers to a symbolic link, the acct() function writes records to the file pointed to by the symbolic link.
If Network File System is installed on your system, the accounting file can reside on another node. To ensure accurate accounting, each
node must have its own accounting file, which can be located on any node in the network.
The calling process must have superuser privilege to enable or disable process accounting.
RETURN VALUES
Upon successful completion, the acct() function returns a value of 0 (zero). Otherwise, a value of -1 is returned and errno is set to
indicate the error.
ERRORS
If the acct() function fails, errno may be set to one of the following values: The calling process does not have appropriate system privi-
lege. The file named by the path parameter does not exist.
The file named by the path parameter is not an ordinary file. Write permission is denied for the named accounting file. The named file
resides on a read-only file system.
RELATED INFORMATION
Functions: exit(2), sigaction(2), sigvec(2), expacct(3), raise(3) delim off
acct(2)