| United States-English |
|
|
|
![]() |
System Administration Commands: Section 1M (Ref Pages Vol 2) > aacctcom(1M) |
|
NAMEacctcom — search and print process accounting files DESCRIPTIONThe acctcom command reads file, standard input, or /var/adm/pacct, in the form described in acct(4) and writes selected records to standard output. Each record represents the execution of one process. The output has the following column titles:
Optionally, the following can be displayed:
The command name is preceded by a # if superuser privileges were required to executed the command. For example, if a user is logged in as root, and executes the date command to check the time, this does not require superuser privileges, and will be shown by acctcom without the # character on the line. If the user executes the command date 0731180092 to set the time, this requires superuser privileges, and so will be marked with a # by acctcom. If a process is not associated with a known terminal, a ? is printed in the TTYNAME field. The system exit status STAT is 0 if the process terminated by calling exit. If it is not 0, it is the signal number that caused the process to terminate. If a core file image was produced as a result of the signal (see signal(5)), the value is the signal number plus 0200. If no files are specified, and if standard input is associated with a terminal or /dev/null (as is the case when using & in a shell), acctcom reads /var/adm/pacct. Otherwise, it reads standard input. If any file arguments are given, they are read in their respective order. Each file is normally read forward, that is, in chronological order by process-completion time. The file /var/adm/pacct is usually the current file to be examined. A busy system may need several such files of which all but the current file are found in /var/adm/pacct?. Optionsacctcom recognizes the following values for the option argument. Listing options together has the effect of a logical AND.
WARNINGSacctcom only reports on processes that have terminated. For active processes, use the ps command (see ps(1)). If time exceeds the current system clock time, time is interpreted as occurring on the previous day. The accounting flag is not cleared when one processes exec's another, but only when one process forks another. One side-effect of this is that some processes will be marked with #, when users don't expect them to be. For example, the login command uses superuser privileges to assume the identity of the user who is logging-in, setting the ASU bit in the accounting flag (which ultimately causes the # symbol in the acctcom output). After assuming the user's identity, login exec's the user's shell. Since the exec does not clear the ASU flag, the shell will inherit it, and be marked with a # in the acctcom output. SEE ALSOps(1), su(1), acct(1M), acctcms(1M), acctcon(1M), acctmerg(1M), acctprc(1M), acctsh(1M), fwtmp(1M), runacct(1M), acct(2), wait(2), acct(4), utmp(4), signal(5). HP Process Resource Manager: prmconfig(1), prmconf(4) in HP Process Resource Manager User's Guide. |
||||||||||||||||||||||||||||
|
|||||||||||||||