Hitachi

Hitachi Application Server V10 Command Reference Guide (For UNIX® Systems)


4.2.2 car_tar_Z

core archiving

Synopsis

car_tar_Z [-i executable-file-name] [-f] [-s|-S] [core-file-name] >
    output-file-name

Storage location

Application Server installation directory/jdk/jre/bin/

Function

This command gathers a core file and its related libraries and outputs them to a single archive file. The car_tar_Z command compresses the file and the related libraries by using the compress command.

Arguments

-i executable-file-name

Specifies an executable file name.

-f

Acquires files such as the libraries with a path name.

-s

Reports the size (unit: bytes) of an archive file to be output.

In such cases, the archive file is not output.

-S

Outputs a shell script for creating an archive file.

When you specify this option, specify the shell script name in output-file-name.

When you execute the output shell script, the archive file is output.

core-file-name

Specify the core file name.

Default value:core

output-file-name

Specify a name of the archive file or shell script file.

Examples

When creating an archive file

car_tar_Z -f core.8326 > corefile.tar.Z

When checking the size of an archive file

car_tar_Z -s core.8326

When creating an archive file from a shell script

  1. Creating a shell script

    car_tar_Z -S core.8326 > collect_cores.csh

  2. Assigning execution permission to a shell script

    chmod +x ./collect_cores.csh

  3. Creating an archive file by using the shell script

    ./collect_cores.csh > corefile.tar.Z

Exit Status

Exit Status

Explanation

0

The command is terminated normally.

1

The command is terminated abnormally.

Output messages

When the system outputs the following messages, a normal archive file is not output.

No.

Error message

Explanation

1

usage: car_tar_Z [ -i executable-file ] [ -f ] [ -s | -S ] [ core-file ]

Arguments of the command are invalid.

2

car_tar_Z: inner error!

This is an internal error of the car_tar_Z command.

3

car_tar_Z: cannot create temporary name

A file to be temporarily used cannot be created. Delete or migrate the file car_exec?? (?? is a number from 00 through 99) in the current directory.

4

car_tar_Z: ~ : file not found

A file is not found. Check the executable file specified in the core file and the -i option.

5

car_tar_Z: ~ : not supported platform

The OS is not supported.

Notes