coredump - Creates a core snapshot of a running process
coredump [directory] pid
A directory in which to put the core snapshot. The default is the
pid The process id of the running process.
The coredump command creates a core snapshot of a running process. To use
the coredump command, you:
+ Must have root privileges or own the process specified (pid).
+ Must have procfs enabled.
By default, the snapshot is placed in a file named core, in the current
directory. You can specify a different directory with the directory
operand. If core-file-naming is enabled at the system or application level
(see the Programmer's Guide), the core file will be named automatically
according to the following convention:
where tag is a uniquely assigned number.
To examine the core snapshot, use the dbx(1) debugger or the ladebug(1)
debugger (if installed) as you would when examining the core dump resulting
from a program crash.
If any of the following conditions occurs, errno is set to the correspond-
[ESRCH] No such process. There is no running process with that process id.
[EPERM] Permission denied. You do not own the process or do not have the
The following exit values are returned:
0 Successful completion.
>>0 An error occurred.
Default name of a core snapshot file.
Location of the coredump program.
dbx(1), ladebug(1), proc(4).