[Tutor] Automating operations... os module, mysql operations, more...

John washakie at gmail.com
Thu Nov 1 23:05:51 CET 2007


>
>
>
>
> > 2) Query various servers to see if there is 'idyl' time/resources...
> > send a job to the server if it's available...
> >
>
> This and 3 can be helped out with ipython
>
>
>
> >  3) Use python to check the file system for existing files (glob?) ,
> > decide which 'jobs' need to be run, etc.
> > ->os, sys, glob
> >
>
I'm not sure I follow this? ipython is a command line interpreter, no? How
ill that help me 'automate' tasks...

>
> > 4) Use python as glue between the db and the shell /fortran routines.
> > For this I picture python querying the db, 'writing' new CONTROL files, and
> > using subprocess to run the scripts / fortran.
> > ->sys, os, subprocess
> >
>
> I'd imagine SWIG may make it so you can actually call it if you make your
> fortran compiler spit out a C compatible library. I know that one of the
> Fortran95 compilers does this.
>

Seems this would require a bit more than is required... just running the
shell scripts, which run the fortran is all I'm desiring to accomplish today
;)

....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20071101/0dfd3282/attachment.htm 


More information about the Tutor mailing list