The EXE component executes the specified external program.
Input | Format | All |
---|---|---|
Number of Inputs | 1 | |
Output | Format | XML,CSV,FixedLength,Text,HTML,Binary,MIME |
Description |
If the |
Name | Data Type/Selection | Mapping | Description | |
---|---|---|---|---|
FilePath | string | Yes |
The path of the program to execute. If the path contains a space, the entire string must be surrounded by double quotes. |
|
Argument | string | Yes |
Defines the arguments passed to the program.
If the arguments are separated by a space, put them within double quotes.
Although the program's path and arguments are separate properties, it is possible to define the arguments in the |
|
Directory | string | Yes |
The directory in which the program exists. If this property is not defined, the project owner's home directory is used. |
|
STDIN | boolean | Yes |
If True, this component's input stream is directly passed to the program. |
|
Timeout | int | Yes |
The time, in seconds, to wait for the program to end. If the program does not end before the specified time, the program is terminated, and an Exception is thrown. If set to zero, this component will not timeout. |
|
StreamPassThrough | boolean | Yes |
If this property is set to False, the executed program's output is passed to this components' output stream. If this property is set to True, the input stream is passed directly to the output stream. |
|
OutputEncoding | string | None | Specifies the program's standard output encoding. | |
ReturnCode | int | Output Only | This read-only property is set to the return code returned by the executed program. | |
StderrCheck | boolean | Yes |
If True, this component check stderr output and throw exception . |
This component cannot be the starting point for a loop.
Commit |
Do Nothing |
---|---|
Rollback |
Do Nothing |
Type | Parameters | Flow Input Stream | Error Code | Cause |
---|---|---|---|---|
Exception | none |
This component's input stream. | none | The program can not be executed. |
none | The program does not end before the period set by the Timeout property. |
|||
none | The program outputs an error. |
Windows batch files and DOS commands can be executed.
Example 1 : "cmd.exe /c test.bat"
Example 2 : "cmd.exe /c dir"
Unix platform shell scripts can be executed like the example below:
"sh ./test.sh"