Starting a Background Command
Command Handle
TheCommandHandle provides methods to interact with the running command:
| Method | Description |
|---|---|
wait() | Block until command completes |
kill() | Terminate the command |
send_stdin(data) / sendStdin(data) | Send input to the command |
disconnect() | Stop receiving events without killing |
| Property | Description |
|---|---|
pid | Process ID |
stdout | Accumulated stdout so far |
stderr | Accumulated stderr so far |
exit_code / exitCode | Exit code (after completion) |