Subprocess or Process or OMG!!

blair.bethwaite at gmail.com blair.bethwaite at gmail.com
Thu May 18 21:09:36 EDT 2006


rh0dium wrote:
> This has several problems - least of which args aren't working....  Has
> anyone really tried this approach?

No, they just wrote the code for the hell of it.  :)

Seriously though, you may want to consider using the popen2 module.
Then you'll be able to wait on the subprocess to return and check the
return code, plus you could do your DB update first then go into a
wait() to check for success.

-B




More information about the Python-list mailing list