Skip to main content

write_ssh_command_stdin

Function write_ssh_command_stdin 

Source
pub async fn write_ssh_command_stdin(
    stdin: ChildStdin,
    input: &str,
) -> Result<()>
Expand description

Write and close an SSH script pipe within the caller’s execution deadline. Run concurrently with output draining. A closed pipe is allowed so the caller can collect an early SSH failure’s actual exit status and stderr.

§Errors

Returns write or shutdown errors other than an expected broken pipe.