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.
-
class
ClusterShell.Worker.Rsh.
RshClient
(node, command, worker, stderr, timeout, autoclose=False, rank=None)¶ Rsh EngineClient.
-
class
ClusterShell.Worker.Rsh.
RcpClient
(node, source, dest, worker, stderr, timeout, autoclose, preserve, reverse, rank=None)¶ Rcp EngineClient.