Skip to main content

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​

InputTypeRequiredDefaultWhat it is
ProgramStringYesProgram name or full path.
ArgumentsListNoArguments, one list item each (no shell quoting needed).
Working folderFileNoFolder to run in; the workspace when empty.
InputStringNoText sent to the program's standard input.
Timeout (seconds)NumberNo300Maximum run time.
Fail on errorBooleanNotrueFail the step when the exit code is not 0.
EnvironmentDictionaryNoExtra environment variables for the program.
Output encodingStringNoutf-8Text encoding of the program's input and output, e.g. utf-8, cp850, windows-1252.
Allow shell operatorsBooleanNofalseFor 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​

OutputTypeWhat it is
exit_codeNumberExit code; 0 usually means success.
outputStringStandard output.
error_outputStringStandard error.