Launch file from Python
kyosohma at gmail.com
kyosohma at gmail.com
Wed Aug 8 15:39:03 EDT 2007
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
More information about the Python-list
mailing list