Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Advanced Shell Description, User's Guide, Reference, and Operator's Guide


6.2.25 Changing the directory (cd command)

The cd command changes the debugger's work directory. There is no abbreviation for the cd command. The following shows the format of the cd command:

cd directory-path-name

You change the work directory by specifying a directory path name in the argument.

The following describes the cd command's processing.

When the cd command argument is specified

The command changes the debugger's work directory to the specified directory. The command displays the absolute path of the new directory.

If the job definition script is executing, the cd command changes only the debugger's work directory; it does not change the current directory of the executing job definition script.

If the cd command is not able to change the debugger's work directory because a directory path name without execution permissions or a nonexistent directory path name is specified, the command outputs an error message.

When the cd command argument is omitted

The command outputs an error message.

Example

This example uses the cd command to change the work directory. The example then uses the exec command to execute an external command and outputs the contents of a file located at the destination directory.

(adshdb) cd work
KNAX7048-I Working directory: /home/xxx/work
(adshdb) exec cat test.txt
aaa bbb ccc
(adshdb)