Skip to content

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 path is set to python, 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
Path to the executable or command. If 'python', it will auto-detect the interpreter.
Args
A list of arguments to pass to the executable.
Stdin
A data stream to pass to the executable's standard input.
Print
Controls where the command's output (stdout/stderr) is sent.
Environment Vars
A list of environment variables in 'KEY=VALUE' format. Context variables in the VALUE are expanded.

Outputs#

Port Description
Success
Executes if the command ran to completion.
Error
Executes if there was an error launching the command (e.g., command not found).
Output
The combined standard output (stdout) and standard error (stderr) from the command.
Exit Code
The exit code returned by the command.

ID: core/run-exec@v1