[Tutor] submitting batch jobs with python

Isaac Hall hall@nhn.ou.edu
Mon Dec 23 14:50:54 2002


gracious tutor list members,

I am working on a program to submit several batch jobs with python.
when one submits a batch job from a shell here, the system returns several
lines of output telling you many things you need to know (like where the
ouput will be written, etc....)  I would like my program to capture this
information, but I am a little unclear as to how to do this.  It looks
like the call os.popen('command').read() is the way to go, but I do not
know what format this will put several lines into.  secondly, how will
this handle submitting say 200 jobs at once.  will each popen call only
capture the lines intended for that job?  any ideas?

Ike