ssh_exec_stdout {condor} | R Documentation |
Execute and Capture Standard Output
Description
Call ssh_exec_internal
and convert the standard output to characters.
Usage
ssh_exec_stdout(command, session = NULL, ...)
Arguments
command |
command or script to execute. |
session |
optional object of class |
... |
passed to |
Details
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
.
Value
A "character"
vector containing the standard output.
Author(s)
Arni Magnusson.
See Also
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.
Examples
## 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)
[Package condor version 2.1.0 Index]