WorkerRsh
- class ClusterShell.Worker.Rsh.WorkerRsh(nodes, handler, timeout=None, **kwargs)[source]
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.