SystemExecute executes system commands.
|Input||0||For standard input of the specified system command (input of the process)||Any1|
|Output||0||||For a standard output of the specified system command (output of the process)||Any2|
 A standard output must be written to an output port or output file. If both an output port is connected and output file is specified, an output is sent to output port only.
SystemExecute does not propagate metadata.
SystemExecute has no metadata template.
A command to be executed by the system. The command is always saved to a tmp file as a script. In case an interpreter is specified, it executes that script. If the command requires an input, it has to be sent to the command through the optional input port. For details, see How it works.
|Process input/output charset|
Encoding used for formatting/parsing data for input/from output of system process.
The default encoding depends on DEFAULT_CHARSET_DECODER in defaultProperties.
|UTF-8 | <any other>|
|Output file URL|||
Name of a file, including the path, to which output of the process (together with errors) should be written if the output edge is not connected and if System command creates the standard output. For more information, see URL File Dialog.
By default, the contents of an output file is always deleted and
overwritten by new data.
If set to
|false (default) | true|
An interpreter that should execute the command.
If specified, System command is saved as a
script to a temporary file and executed by this interpreter.
Its form must be the following:
|Working directory||A working directory of the component.||current directory (default) | other directory|
|Number of error lines||The number of lines that are printed if a command finishes with errors.||2 (default) | 1-N|
|Delete tmp batch file|
IMPORTANT: This attribute has been removed from CloverETL 3.3.0.M3 because of a clash with temp space management.
By default, the created temporary batch file is deleted after command
execution. If set to
|true (default) | false|
System-dependent mapping from variables to values.
Mappings are separated by a colon, semicolon or pipe.
By default, the new value is appended to the environment of the
For example: PATH=/home/user/mydir[!true] (default) | PATH=/home/user/mydir!false
|Timeout for producer/consumer workers (ms)||0 (without limitation) | 1-n|
|Ignore exit value|
In case the executed system command returns non-zero value, the component fails. This option can change this behavior, the exit value can be ignored.
|true | false (default)|
 If the output port is not connected, a standard output can only be written to a specified output file. If the output port is connected, an output file will not be created and a standard output will be sent to the output port.
 A working directory defaults to current process working directory only if the graph runs on a local CloverETL engine. If it runs on the CloverETL Server, then the default working directory is the sandbox root. In case of a clustered Server environment, the default working directory is the sandbox root only if the sandbox is of a "shared" type, or it is of a "local" type and is located on the node running the SystemExecute component. Otherwise the Server node cannot access the sandbox locally, i.e. the sandbox is of type "local" but is located on a remote node, in which case the working directory defaults to some arbitrary temporary directory supplied by the Temp Space Management subsystem of the Server node. The component prints a message about which working directory was actually used into a graph run log at INFO log level.
SystemExecute executes commands and arguments specified in the component itself as a separate process. The commands receive a standard input through the input port and send a standard output to the output port (if the command creates any output).
SystemExecute runs the command specified in the System command and creates two threads.
The first thread (producer) reads records from the input edge, serializes
them and sends them to
stdin of the command.
The second thread (consumer) reads
stdout of the
command, parses it and sends it to the output edge.
When the command ends, the component still waits until both the producer and the consumer also finish their work. The time is defined in the Timeout attribute.
By default, timeout is unlimited now. In case of an unexpected deadlock, you can set the timeout to any number of milliseconds.
We recommend users to explicitly specify Process input/output charset.