| # Gaudi Framework, version v23r0 |

Home |  | Generated: Mon Jan 30 2012

Public Member Functions | Public Attributes

# GaudiMP::Parallel::SshSession Class Reference

List of all members.

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

## Detailed Description

Definition at line 164 of file Parallel.py.

## Constructor & Destructor Documentation

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

Definition at line 165 of file Parallel.py.

    00166                                 :
    00167         import pyssh
    00168         import pp
    00169         self.host = hostname
    00170         ppprefix =  os.path.dirname(os.path.dirname(pp.__file__))
    00171         self.session = pyssh.Ssh(host=hostname)
    00172         self.session.open()
    00173         self.session.read_lazy()
    00174         self.session.write('cd %s\n' % os.getcwd())
    00175         self.session.read_lazy()
    00176         self.session.write('setenv PYTHONPATH %s\n' % os.environ['PYTHONPATH'])
    00177         self.session.read_lazy()
    00178         self.session.write('setenv LD_LIBRARY_PATH %s\n' % os.environ['LD_LIBRARY_PATH'])
    00179         self.session.read_lazy()
    00180         self.session.write('setenv ROOTSYS %s\n' % os.environ['ROOTSYS'])
    00181         self.session.read_lazy()
    00182         self.session.write('%s %s/scripts-%s/ppserver.py \n'%(sys.executable, ppprefix, sys.version.split()[0] ))
    00183         self.session.read_lazy()
    00184         self.session.read_lazy()
            print 'started ppserver in ', hostname

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

Definition at line 185 of file Parallel.py.

    00186                      :
    00187         self.session.close()
    00188         print 'killed ppserver in ', self.host
    00189
    00190 # == EOF ====================================================================================

## Member Data Documentation

GaudiMP::Parallel::SshSession::host

Definition at line 165 of file Parallel.py.

GaudiMP::Parallel::SshSession::session

Definition at line 165 of file Parallel.py.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r0/GaudiMP/python/GaudiMP/Parallel.py

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines