| ssh {fame} | R Documentation |
This function composes an ssh (Secure SHell) command to run
something on another machine and invokes it via system().
Alternatively, if a function localSsh is defined, taking the
same arguments as ssh, it will be called instead.
ssh(command, host = getOption("remoteHost"), user. = user(), wait = F, ...)
command |
command to be executed on the remote machine |
host |
hostname of the remote machine |
user. |
username on the remote machine |
wait |
if TRUE, return only after command has
finished running on the remote system. If FALSE (the default),
return immediately after sending command to the remote system. |
... |
additional arguments passed to system |
Uses the ssh program on Unix, and plink -ssh on Windows.
The return value is whatever the system() function
returns. If ... includes intern = T, this will be
whatever the ssh or plink returned.
This is a very simple-minded implementation. I did just enough
work on it to get the startRemoteServer function working and
quit while I was ahead. No error checking is done.
Jeff Hallman
## Not run:
ssh("uname -a", host = "localhost")
## End(Not run)