Operating System Command

OSCommand32x32

Description

Runs a command on the Runtime engine’s operating system. The command is usually entered in the code of the action.

Parameters

Name Mandatory Default Description

OS Ignore Stderr

No

false

When set to true the action will silently ignore the error output when computing the final status and only use the return code. When set to false the action will raise an error if the error output is not empty while computing the final status.

OS Shell Launcher

No

Shell used to start the command: sh -c (Shell), bsh -c (Bash) or cmd /c (Windows Command)

OS Working Dir

No

Runtime engine temporary folder.

Working directory in which the command starts.

OS Charset

No

Character set of the operating system.

OS Standard Input Limit Size

No

–1 (unlimited)

Maximum number of characters written in the OS_RET_MESS variable

OS Error Input Limit Size

No

–1 (unlimited)

Maximum number of characters written in the OS_ERR_MESS variable

OS Successful Exit Code

No

0

Default successful exit code returned by the command

OS Timeout

No

–1

Timeout in milliseconds for command execution. If this timeout is reached without the command to be ended an exception will be thrown. Note that you can use –1 for an infinite timeout.

Published Variables

Name

Description

OS_RET_MESS

Message returned by the OS Command.

OS_ERR_MESS

Error message returned by the OS Command if any.

OS_ERR_CODE

Error code returned by the OS Command if any.