rpc: Remote Procedure Call

Description Usage Arguments Details Value See Also

Description

Launch a command via ssh or plink on a (remote) server.

Usage

1
2
rpc(machine, cmd = "whoami", intern = .pbd_env$RPC.CT$intern,
  wait = .pbd_env$RPC.CT$wait)

Arguments

machine

A machine configuration. See ?machine.

cmd

the command to be executed on the server.

intern, wait

arguments passed to system() or shell() whereever they are applicable.

Details

Using either ssh or plink to launch a command on a (remote) server. Authentication is working currently for ssh.

NO further input from stdin is expected. Outputs or errors may not be captured by R.

Value

Mainly the message received from the command line of server may be returned but may not be captured by R.

For example, Windows with plink will not capture the return because currently the authentication is not working. A windows bat file is launched by shell.exec() in an additional cmd.exe window to avoid saving password inside R.

See Also

machine(), start_rr(), check_rr(), kill_rr(), srpc(), ssh(), and plink().


pbdRPC documentation built on May 1, 2019, 7:28 p.m.