run_stdin

Function run_stdin 

Source
pub async fn run_stdin(
    ctlpath: &str,
    command: &str,
    stdin: Option<Vec<u8>>,
) -> Result<ShellResult, SshctlError>
Expand description

Runs a given shell command on the remote hosts default shell though an existing SSH UNIX control socket. The SSH control socket is created outside of this crate by an existing SSH connection.

This function is the same as run but custom data is supplied to the remote commands STDIN.