Run program and wait
Run a program, wait for it to finish and return its exit code and output.
Command in the Application toolkit · id ooa.application/run_program · 9 inputs (1 required), 3 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Program | String | Yes | Program name or full path. | |
| Arguments | List | No | Arguments, one list item each (no shell quoting needed). | |
| Working folder | File | No | Folder to run in; the workspace when empty. | |
| Input | String | No | Text sent to the program's standard input. | |
| Timeout (seconds) | Number | No | 300 | Maximum run time. |
| Fail on error | Boolean | No | true | Fail the step when the exit code is not 0. |
| Environment | Dictionary | No | Extra environment variables for the program. | |
| Output encoding | String | No | utf-8 | Text encoding of the program's input and output, e.g. utf-8, cp850, windows-1252. |
| Allow shell operators | Boolean | No | false | For cmd.exe and .bat/.cmd files only: let arguments contain & | < > ^ or quotes, which cmd reads as command operators. Leave off when arguments carry data (file names, e-mail subjects): such characters are then refused, so data can never run a command. |
Outputs
| Output | Type | What it is |
|---|---|---|
| exit_code | Number | Exit code; 0 usually means success. |
| output | String | Standard output. |
| error_output | String | Standard error. |