Information Technology Reference
In-Depth Information
Table 11.2
Core Filename Pattern Variables
Variable
Expanded Value
%p
PID
%u
User ID (UID)
%g
Group ID (GID)
%f
Name of program
%n
System name
%m
Machine name
%t
Timestamp
%%
Literal
%
For example, assume the
junk
program has a PID of 123 and its associated
per-process core filename pattern is:
/var/cores/core.%f.%p
If the
junk
program generated a core file, the core file would be named
/var/cores/core.junk.123
.
The coreadm Command
The
coreadm
command can be used to manage per-process and global core
file configurations along with per-process and global
setuid
core file con-
figurations. Once configured, they can be enabled or disabled as required.
Table 11.3 lists the
coreadm
command-line arguments.
Table 11.3
The coreadm Command-Line Arguments
Argument
Purpose
-d
configuration
Disable the specified
configuration
(global, process, global-setid
or proc-setid, log)
-e
configuration
Enable the specified
configuration
(global, process, global-setid
or proc-setid, log)
-g
pattern
Set global core filename pattern to
pattern
-i
pattern
Set per-process core filename pattern to
pattern
for processes
created by
init(1M)
-p
pattern
Set per-process filename pattern to
pattern
pid
One or more PIDs (separated by spaces)
-u
Force immediate update of global configuration