Workspace 6.21.5
|
Executes a system command as a separate process, optionally capturing its output and returning it to Workspace. This operation can be used to execute any third-party process, such as standard system commands (like directory listings), or custom executables like computational solvers.
Inputs: | |||
---|---|---|---|
Command | QString | The command to execute; e.g. "ls" without the quotes. | |
Arguments | Array | QString | |
Working directory | QString | The directory that the command should be executed in. | |
Environment variables | Array | QString | Any array input of environment variables to set. These should be entered as name=value pairs, e.g. PATH=/path/to/something |
Wait for completion | bool | If enabled, the operation will block execution until the command has completed executing. | |
Capture output | bool | If enabled, the operation will capture the output of the command and make it available to the executing Workspace via the Command output output. | |
Log output | bool | If enabled, the operation will print the output of the command to the Workspace log. | |
Fail on non zero exit code | bool | Tick this to set operation fail when the command exit with non-zero code. | |
Outputs: | |||
Command output | QString | ||
Exit code | int |