CHDIR

System Testing Supervisor Script Language.

Purpose

The CHDIR instruction changes the current working directory of the System Testing Supervisor machine or of a target machine.

Syntax

CHDIR [ <hostname>: ] <directory>

where:

1. <hostname> is an optional logical name of a target machine (see HOST)

<directory> is the relative or absolute path of a directory

Description

When supervisor execution starts, the working directory of the System Testing Supervisor machine is the current directory of the shell that runs the System Testing Supervisor.

When the script starts, the working directory of the target machine is the directory where the Agent has been started.

The <directory> path may contain local environment variables from the System Testing Supervisor machine, or remote environment variables defined on the target machine. For more information, refer to the section on Environment variables.

If the operation fails, you will receive an error message (see ERROR).

The <directory> path may contain long quoted pathnames, such as "C:\Program Files\HCL\OneTest Embedded\".

Example

HOST target IS workstation.domain.com

CHDIR localdir

CHDIR \$ATS_DIR

CHDIR target:\$HOME

CHDIR target:/tmp/project

SET DIR=C:\tmp

CHDIR \$DIR

Related Topics