Action System
Execute Script
Executes a shell script and outputs the result on separate ports. ⚠️ Security Warning: This node executes arbitrary code. Note: Scripts inherit environment variables from the Succession process. Sensitive env vars (like API keys set in the parent process) will be accessible to scripts.
Node IDExecuteScriptAction
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
Script Content scriptContent | textarea | Yes | — | The raw text of the script to be executed. Can be set statically or by a data connection. |
Working Directory workingDirectory | string | No | — | Optional. The path to the directory where the script should run. If empty, uses the default directory. |
Fail on Non-Zero Exit Code failOnNonZeroExit | boolean | No | true | If true, the action is marked as 'Failure' if the script returns any exit code other than 0. |
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
Execute input0 | object | Yes | An incoming execution signal. |
Outputs
| Output | Type | Identifier | Description |
|---|---|---|---|
stdout output0 | object | stdout | Emits a standard data object containing the script's standard output as a string. |
stderr output1 | object | stderr | Emits a standard data object containing the script's standard error as a string. |
Exit Code output2 | object | exit_code | Emits a standard data object containing the script's integer exit code. |