Package ClusterShell :: Package Worker :: Module Exec
[hide private]
[frames] | no frames]

Module Exec

source code

ClusterShell base worker for process-based workers.

This module manages the worker class to spawn local commands, possibly using a nodeset to behave like a distant worker. Like other workers it can run commands or copy files, locally.

This is the base class for most of other distant workers.

Classes [hide private]
  ExecClient
Run a simple local command.
  CopyClient
Run a local `cp' between a source and destination.
  ExecWorker
ClusterShell simple execution worker Class.
  WORKER_CLASS
ClusterShell simple execution worker Class.
Functions [hide private]
 
_replace_cmd(pattern, node, rank)
Replace keywords in `pattern' with value from `node' and `rank'.
source code
Variables [hide private]
  __package__ = 'ClusterShell.Worker'
Function Details [hide private]

_replace_cmd(pattern, node, rank)

source code 

Replace keywords in `pattern' with value from `node' and `rank'.

%h, %host map `node' %n, %rank map `rank'