ssh_shell_write
Send a command to an active SSH shell session to execute operations on a remote embedded board. Use after opening the session, and clear the buffer to capture only the latest output without interference.
Instructions
Send a command to an SSH shell session. Do NOT call this concurrently with ssh_shell_exec/ssh_shell_read on the same session_id — concurrent access to the same SSH shell corrupts the output buffer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Buffer clear flag: 1 (default) = clear buffer before collecting, 0 = append to buffer | |
| command | Yes | The command to send to the shell | |
| session_id | Yes | The session ID returned by ssh_shell_open |