Run a command or script on the host while streaming stdout and stderr directly to the client.
ssh_exec_wait( session, command = "whoami", std_out = stdout(), std_err = stderr() ) ssh_exec_internal(session, command = "whoami", error = TRUE)
ssh connection created with
The command or script to execute
callback function, filename, or connection object to handle stdout stream
callback function, filename, or connection object to handle stderr stream
automatically raise an error if the exit status is non-zero
ssh_exec_wait() function is the remote equivalent of the local
It runs a command or script on the ssh server and streams stdout and stderr to the client
to a file or connection. When done it returns the exit status for the remotely executed command.
ssh_exec_internal() is a small wrapper analogous to
It buffers all stdout and stderr output into a raw vector and returns it in a list along with
the exit status. By default this function raises an error if the remote command was unsuccessful.