-
Notifications
You must be signed in to change notification settings - Fork 28
Tutorials
davidressman edited this page Mar 21, 2013
·
6 revisions
This guide is a tutorial for getting started programming with DRMAA. It is basically a one to one translation of the original in C for Grid Engine. It assumes that you already know what DRMAA is and that you have drmaa-python installed. If not, have a look at Installing. The following code segments are also included in the repository.
The following code segments (example1.py and example1.1.py) shows the most basic DRMAA python binding program.
#!/usr/bin/env python
import drmaa
def main():
"""Create a drmaa session and exit"""
s=drmaa.Session()
s.initialize()
print 'A session was started successfully'
s.exit()
if __name__=='__main__':
main()