gencore Command

Purpose

Generates a core file for a running process.

Syntax

gencore ProcessID FileName

Description

The gencore command creates a core file of the process specified by the process ID ProcessID without terminating the process. The created core file contains the memory image of the process, which can be used with the dbx command for debugging purposes. The core file generated will be named as specified by FileName parameter.

The gencore command does not create the core file in the location set by the chcore or syscorepath commands. The core file is placed in the path specified by the FileName parameter. If FileName specifies only the name of the file, the core file is placed in the current working directory.

Parameters

Item Description
FileName Specifies the file name of the core file the gencore command creates.
ProcessID Specifies the process ID of the process from which gencore will create a core file.

Exit Status

0
The core file was created successfully.
>0
An Error occurred. A partial core file may be created.

Examples

  1. To generate a core file named "core.1095" for the process with process ID 1095, enter:
    gencore 1095 core.1095 
    The creates the core file without terminating the process.

Files

Item Description
/usr/bin/gencore Contains the gencore command.