Execute command is a processor that executes a system command or a console application with the specified command-line arguments and output mechanisms.
Keywords can be used with the search function above the Elements pane.
The keywords for the Execute command element are:
Execute command allows only a single outgoing connection
Properties |
Description |
---|---|
Name |
The name of the flow element displayed in the canvas |
Command or path |
The system command to be executed, or the absolute path to the console application to be invoked |
Arguments |
The remainder of the command line; the following substitutions are made in the specified text:
Note 1: all of these substitutions work even if "Output" is set to None or Original (in which case any generated output is discarded) Note 2: argument values that may contain spaces (such as file paths) should be enclosed in quotes |
Output |
Determines how the command generates its output (the tool automatically moves the output to the outgoing connection):
|
Copy input job |
If set to yes, the incoming job is copied to a temporary location before the command is triggered; this must be turned on in cases where the command modifies the input job or places files in the folder where the input job resides This property is not present for some choices of output because in those cases the incoming job must always be copied |
Output job filter |
Determines which of the generated files or folders is the output file; Automatic works unambiguously if a single file is generated; otherwise a simple heuristic is used to make an "educated guess" |
Output extension |
The filename extension of the output job to be provided to the command line (i.e. the substitution of %2); Automatic means use the same extension as the input job |
Fail if exit code is |
Fails the job (that is, moves it to the problem jobs folder) if the command's exit code is:
|
Range |
A range specified as "n1..n2;n3..n4" where the n's represent a positive or negative integer or are missing to indicate an open end; for example: "-7..-4; 0.." |
Fail if stdout contains |
Fails the job (that is, moves it to the problem jobs folder) if the regular console output contains the search string or pattern; empty means disregard the regular console output |
Fail if stderr contains |
Fails the job (that is, moves it to the problem jobs folder) if the console error output contains the search string or pattern; empty means disregard the console error output |