gcore(1) gcore(1)
NAME
gcore - get core images of running processes
SYNOPSIS
gcore [-o filename] processid ...
DESCRIPTION
gcore creates a core image of each specified process. Such an image
may be used with debuggers such as fsdb.
OPTIONS
-o not specified:
gcore creates a core image for each process whose process ID is
specified in the argument list. The core image is stored in the
file core.processid.
-o filename
(output file) The core image is stored in the file
filename.processid instead of core.processid.
processid
Process ID of the process for which a core image is to be
created. More than one process ID may be specified.
EXAMPLES
First, print an overview of all running processes with the ps command:
$ ps
PID TTY TIME COMD
27623 tty004 0:02 sh
27691 tty004 0:00 ps
The process ID of each process is shown in the first column. The gcore
command can now be called to store a core image of the sh process in a
file:
$ gcore 27623
gcore: core.27623 dumped
$ ls -l
total 64
-rw-r--r-- 1 cmd cmdog 30016 Mar 19 13:08 core.27623
-rw------- 1 cmd cmdag 690 Mar 18 14:00 file
-rw-r--r-- 1 cmd cmdag 63 Mar 13 09:29 startup
As you can see, the core image is saved in the file core.27623 and can
be processed further as required.
FILES
./core.processid
File containing the core image for the process identified by
processid.
Page 1 Reliant UNIX 5.44 Printed 11/98
gcore(1) gcore(1)
SEE ALSO
kill(1), ps(1), fsdb(1M), ptrace(2).
Page 2 Reliant UNIX 5.44 Printed 11/98