| # Gaudi Framework, version v21r6 |

Home |  | Generated: 11 Nov 2009

# GaudiPython::Parallel::SshSession Class Reference

List of all members.

## Detailed Description

Definition at line 192 of file Parallel.py.

## Public Member Functions
def | __init__
def | __del__
## Public Attributes
| host
| session

## Member Function Documentation

def GaudiPython::Parallel::SshSession::__init__ | ( |  | self,
|  |  | hostname |
| ) |  |  |

Definition at line 193 of file Parallel.py.

    00193                                 :
    00194         import pyssh
    00195         import pp
    00196         self.host = hostname
    00197         ppprefix =  os.path.dirname(os.path.dirname(pp.__file__))
    00198         self.session = pyssh.Ssh(host=hostname)
    00199         self.session.open()
    00200         self.session.read_lazy()
    00201         self.session.write('cd %s\n' % os.getcwd())
    00202         self.session.read_lazy()
    00203         self.session.write('setenv PYTHONPATH %s\n' % os.environ['PYTHONPATH'])
    00204         self.session.read_lazy()
    00205         self.session.write('setenv LD_LIBRARY_PATH %s\n' % os.environ['LD_LIBRARY_PATH'])
    00206         self.session.read_lazy()
    00207         self.session.write('setenv ROOTSYS %s\n' % os.environ['ROOTSYS'])
    00208         self.session.read_lazy()
    00209         self.session.write('%s %s/scripts-%s/ppserver.py \n'%(sys.executable, ppprefix, sys.version.split()[0] ))
    00210         self.session.read_lazy()
    00211         self.session.read_lazy()
    00212         print 'started ppserver in ', hostname
        def __del__(self):

def GaudiPython::Parallel::SshSession::__del__ | ( |  | self | ) |

Definition at line 213 of file Parallel.py.

    00213                      :
    00214         self.session.close()
    00215         print 'killed ppserver in ', self.host
    00216
    00217 # ==== Extra stuff for the Event-Parallel Model =======================
    00218
    00219 # ===========================================================================================
    00220 # Miscellaneous Tools
    00221 # ===========================================================================================
    00222
    aida2root = gbl.Gaudi.Utils.Aida2ROOT.aida2root

## Member Data Documentation

GaudiPython::Parallel::SshSession::host

Definition at line 196 of file Parallel.py.

GaudiPython::Parallel::SshSession::session

Definition at line 198 of file Parallel.py.

The documentation for this class was generated from the following file:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r6/GaudiPython/python/GaudiPython/Parallel.py