rshcmd: Sleigh Auxiliary Function

Description Usage Arguments Details Value Note See Also Examples

Description

This function is used by the sleigh constructor when starting workers on remote nodes using the rsh command. Note that it doesn't actually start any workers directly: it simply returns the program name and arguments to start a worker on the specified node.

Usage

1
rshcmd(host, options)

Arguments

host

Name of the worker machine to be started.

options

An environment or list that contains information used to construct the command. See defaultSleighOptions for more information.

Details

rshcmdcurrently uses the following options: user, wrapperDir, and python. The user option is the most useful.

Value

A character mode vector, whose first element is the command that will be executed to start the worker, and whose subsequent elements are the arguments to the command.

Note

rshcmd should only be used if ssh is not available, since ssh is a much more secure, modern replacement for rsh.

See Also

sshcmd, sleigh

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
# Create a sleigh with workers on nodes n1 and n2 started via rsh:
s <- sleigh(launch=rshcmd, nodeList=c('n1', 'n2'))

# Same as previous, but as user 'frank':
s <- sleigh(launch=rshcmd, nodeList=c('n1', 'n2'), user='frank')

# Specify an alternate python interpreter and see the command
# and arguments that rshcmd returns:
defaultSleighOptions$python <- '/usr/local/bin/python'
rshcmd('node1', defaultSleighOptions)

## End(Not run)

nws documentation built on May 2, 2019, 8:51 a.m.