- 14 May 2021
- 1 Minute to read
- Updated on 14 May 2021
- 1 Minute to read
Thanks for sharing your feedback!
This is generated from the built in components of BuildMaster 7.0.0, and may be different than what you have installed (especially if you have extensions); go to [User Icon] -> Documentation within your BuildMaster instance to see exactly what operations are available.
Executes a process, logs its output, and waits until it exits.
InedoCore::Exec( [FileName: <text>], [Arguments: <text>], [WorkingDirectory: <text>], [OutputLogLevel: <integer>], [ErrorOutputLogLevel: <integer>], [SuccessExitCode: <text>], [ImportVariables: <true/false>], [WarnRegex: <text>], [LogArguments: <true/false>], [ReportProgressRegex: <text>], [OutputFilterRegex: <text>] );
|Name||Format||Script Usage||Usage Notes|
|Output log level|
|Error log level|
|Success exit code|
|Integer exit code which indicates no error. The default is 0. This can also be an integer prefixed with an inequality operator.|
|When set to true, all scalar execution variables currently accessible will be exported as environment variables to the process.|
|When set to a valid regular expression string, output messages which are matched will be logged as warnings. To log only part of the message, use a group with name "m".|
|Report progress regex|
|When set to a valid regular expression string, attempts to parse every output message for real-time progress updates. To capature a status message, use a group with name "m". To capture a percent complete as a number from 0 to 100, use a group with name "p".|
|Output filter regex|
|When set to a valid regular expression string, only output messages which match this expression will be logged.|
# execute 7zip and only succeed if the executable returns a non-negative exit code Exec c:\tools\7za.exe ( Arguments: i *.*, SuccessExitCode: >= 0 );
Was this article helpful?