| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
GaudiMP.Parallel.SshSession Class Reference
Inheritance diagram for GaudiMP.Parallel.SshSession:
[legend]
Collaboration diagram for GaudiMP.Parallel.SshSession:
[legend]

## 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.

165
166 def __init__(self, hostname):
167 import pyssh
168 import pp
169 self.host = hostname
170 ppprefix = os.path.dirname(os.path.dirname(pp.__file__))
171 self.session = pyssh.Ssh(host=hostname)
172 self.session.open()
173 self.session.read_lazy()
174 self.session.write('cd %s\n' % os.getcwd())
175 self.session.read_lazy()
176 self.session.write('setenv PYTHONPATH %s\n' % os.environ['PYTHONPATH'])
177 self.session.read_lazy()
178 self.session.write('setenv LD_LIBRARY_PATH %s\n' % os.environ['LD_LIBRARY_PATH'])
179 self.session.read_lazy()
180 self.session.write('setenv ROOTSYS %s\n' % os.environ['ROOTSYS'])
181 self.session.read_lazy()
182 self.session.write('%s %s/scripts-%s/ppserver.py \n'%(sys.executable, ppprefix, sys.version.split()[0] ))
183 self.session.read_lazy()
184 self.session.read_lazy()
print 'started ppserver in ', hostname

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

Definition at line 185 of file Parallel.py.

185
186 def __del__(self):
187 self.session.close()
188 print 'killed ppserver in ', self.host
189
190 # == EOF ====================================================================================

## Member Data Documentation

GaudiMP.Parallel.SshSession.host

Definition at line 168 of file Parallel.py.

GaudiMP.Parallel.SshSession.session

Definition at line 170 of file Parallel.py.

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

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