OdiOSCommand

Usage

OdiOSCommand [-OUT_FILE=<stdout_file>] [-ERR_FILE=<stderr_file>] [-FILE_APPEND=<yes|no>] [-WORKING_DIR_PARAM=<workingdir>] [-SYNCHRONOUS_PARAM=<yes|no>]] [CR/LF <command> | -COMMAND=<command>]

Description

Invokes an operating system command shell to carry out a command, and redirects the outputs to files.

The following operating systems are supported:

The following operating systems are not supported:

Parameters

Parameters

Mandatory

Description

-COMMAND <command>

Yes

The command to execute. Arguments with spaces should be enclosed in quotes as appropriate for the command shell. For a multi-line command, pass the whole command as raw text after the OdiOSCommand line without the -COMMAND parameter.

-OUT_FILE=<stdout_file>

No

The absolute name of the file to redirect standard output to.

-ERR_FILE=<stderr_file>

No

The absolute name of the file to redirect standard error to.

-FILE_APPEND=<yes|no>

No

Whether to append to the output files, rather than overwriting it.

-WORKING_DIR_PARAM=<workingdir>

No

The directory in which the command is executed.

-SYNCHRONOUS_PARAM=<yes|no>

No

If "yes", the session awaits for the command to terminate. If "no", the session continues immediately with error code 0. By default, it executes in Synchronous mode.

Examples

The following command executes the file c:\work\load.bat (on a Windows machine), appending the output streams to files.

OdiOSCommand "-OUT_FILE=c:\work\load-out.txt" "-ERR_FILE=c:\work\load-err.txt" "-FILE_APPEND=YES" "-WORKING_DIR=c:\work"

c:\work\load.bat