Launch file from Python

Eric_Dexter at msn.com Eric_Dexter at msn.com
Wed Aug 8 20:05:37 EDT 2007


On Aug 8, 2:39 pm, kyoso... at gmail.com wrote:
> On Aug 8, 2:35 pm, Arnau Sanchez <ar... at ehas.org> wrote:
>
>
>
>
>
> > kyoso... at gmail.com escribió:
>
> > > That's just the exit status or run status, if I recall correctly. I
> > > think 0 (i.e. False) means it didn't run properly and anything else is
> > > True, or ok. Something like that.
>
> > The other way: 0 means "ok" while everything else means error (at least in
> > UNIX). The reason is clear: there is usually only one way to do things well, but
> > many to fail :-)
>
> > > Technically speaking, you should
> > > probably switch to using the subprocess module as it is replacing that
> > > os module's functionality:http://www.python.org/doc/2.4/lib/module-subprocess.html
>
> > Correct, subprocess replaces low-level os.system, os.popen*, os.spawn*, popen*
> > functions.
>
> Figures...I couldn't find the docs on it though...and I do know that
> some Windows programs return goofy numbers in the 1000s that mean it
> worked fine. So, in other words, the return value isn't very helpful.
>
> Mike- Hide quoted text -
>
> - Show quoted text -


I had used popen on windows and had to seperate the arguments out..
(example is in my awk module in dex tracker on sourceforge)..  What
you did may not work on windows.




More information about the Python-list mailing list