SystemExecute
Executes a system process/command on the underlying OS.
Returns a struct with the following keys:
{ output : [ the command output ] error : [ any errors emitted by the command ] timeout : [ boolean value as to whether a timeout was reached ] terminated : [ boolean value as to whether the process was terminated ] pid : the PID of the process }
Method Signature
Arguments
Argument | Type | Required | Description | Default |
---|---|---|---|---|
|
|
| The process name or binary path ( e.g. bash or /bin/sh ) | |
|
|
| The process arguments ( e.g. for | |
|
|
| The timeout to wait for the command, in seconds ( default unlimited ) | |
|
|
| Whether to terminate the process/command if a timeout is reached |
|
|
|
| A working directory to execute the command from | |
|
|
| ||
|
|
| An optional file path to write errors to |
Examples
Related
Last updated