WorkerRsh

class ClusterShell.Worker.Rsh.WorkerRsh(nodes, handler, timeout=None, **kwargs)

ClusterShell rsh-based worker Class.

Remote Shell (rsh) usage example:
>>> worker = WorkerRsh(nodeset, handler=MyEventHandler(),
...                    timeout=30, command="/bin/hostname")
>>> task.schedule(worker)      # schedule worker for execution
>>> task.resume()              # run
Remote Copy (rcp) usage example:
>>> worker = WorkerRsh(nodeset, handler=MyEventHandler(),
...                     source="/etc/my.conf",
...                     dest="/etc/my.conf")
>>> task.schedule(worker)      # schedule worker for execution
>>> task.resume()              # run

connect_timeout option is ignored by this worker.

COPY_CLASS

alias of RcpClient

SHELL_CLASS

alias of RshClient

class ClusterShell.Worker.Rsh.RshClient(node, command, worker, stderr, timeout, autoclose=False, rank=None)

Rsh EngineClient.

__init__(node, command, worker, stderr, timeout, autoclose=False, rank=None)

Create an EngineClient-type instance to locally run command.

Parameters:node -- will be used as key.
class ClusterShell.Worker.Rsh.RcpClient(node, source, dest, worker, stderr, timeout, autoclose, preserve, reverse, rank=None)

Rcp EngineClient.