CSC352 getXGridOutput.py
--D. Thiebaut 13:04, 10 June 2010 (UTC)
A Python script that can be used when submitting asynchronous jobs to an XGrid system.
Example of use:
xgrid -job submit montecarlo.py 1000000 | getXGridOutput.py
Several jobs can be submitted at once:
for i in {1..18}; do xgrid -job submit montecarlo.py 10000000; done | getXGridOutput.py | gatherResults.py for i in {1..12} ; do xgrid -job submit /usr/bin/cal $i 2010 ; done | getXGridOutput.py > calendars_2010.txt
(see gatherResults.py for more info on last pipe command.)
Note: a Perl version of this program is available here.