Description Usage Arguments Details Value Author(s) Examples
Execute command remotely
1 | remote.execute.cmd(host, cmd, args = character(), stderr = FALSE)
|
host |
host structure to execute command on |
args |
a character vector of arguments to command. |
stderr |
should stderr be returned as well. |
command |
the system command to be invoked, as a character string. |
Executes the given command on the remote host using ssh. If the user is set the system will login as the given user. If the host given is the local machine it will execute the command locally without ssh.
the captured output of the command (both stdout and stderr)
Rob Kooper
1 2 3 4 5 | ## Not run:
#' host <- list(name='cc-login.campuscluster.illinois.edu', user='hamzed', tunnel='~/tunnel')
print(remote.execute.cmd(host, 'ls', c('-l', '/'), stderr=TRUE))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.