Run Executable
Executes a command or program on the system.
Executes a system command or program. This is a versatile node for integrating external scripts and applications.
Special Handling#
- Python: If the
pathis set topython, the node will automatically try to find a suitable Python interpreter on the system.
Execution Flow#
- Success: Triggers if the command was successfully launched and ran to completion.
- Error: Triggers if the node failed to launch the command (e.g., program not found).
Check the exit_code output to handle application-level success or failure (e.g., an exit code of 0 typically means success).
Inputs#
| Port | Description |
|---|---|
| Path to the executable or command. If 'python', it will auto-detect the interpreter. | |
| A list of arguments to pass to the executable. | |
| A data stream to pass to the executable's standard input. | |
| Controls where the command's output (stdout/stderr) is sent. | |
| A list of environment variables in 'KEY=VALUE' format. Context variables in the VALUE are expanded. |
Outputs#
| Port | Description |
|---|---|
| Executes if the command ran to completion. | |
| Executes if there was an error launching the command (e.g., command not found). | |
| The combined standard output (stdout) and standard error (stderr) from the command. | |
| The exit code returned by the command. |
ID: core/run-exec@v1