system()
. It
uses the plink
program (part of the open-source PuTTY suite) to
send a command to a remote computer via the ssh
protocol. 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(),
password = "", wait = F, ...)
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.system
system()
function
returns. If ...
includes intern = T
, this will be
whatever the ssh or plink returned.ssh("uname -a", host = "localhost")
Run the code above in your browser using DataLab