View source: R/ssh_exec_stdout.R
ssh_exec_stdout | R Documentation |
Call ssh_exec_internal
and convert the standard output to characters.
ssh_exec_stdout(command, session = NULL, ...)
command |
command or script to execute. |
session |
optional object of class |
... |
passed to |
The default value of session = NULL
looks for a session
object
in the user workspace. This allows the user to run Condor functions without
explicitly specifying the session
.
A "character"
vector containing the standard output.
Arni Magnusson.
ssh_exec_wait
runs a command or script and shows the
standard output in the R console, while returning the exit status.
ssh_exec_internal
runs a command or script and buffers the
standard output into a raw vector.
condor-package
gives an overview of the package.
## Not run:
session <- ssh_connect("servername")
ssh_exec_wait(session, "ls") # returns 0
ssh_exec_internal(session, "ls")$stdout # returns a raw vector
ssh_exec_stdout("ls") # returns directory names
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.