spawning a process with subprocess

bhunter brian.p.hunter at gmail.com
Mon Nov 26 13:27:24 EST 2007


> I've read that this sort of thing can be a pain. I'm sure someone will
> post and have other views though. I have had some success using
> Python's threading module though. There's a pretty good walkthrough
> here (it uses wxPython in its example):
>
> http://wiki.wxpython.org/LongRunningTasks
>
> Other places of interest include:
>
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/491281http://uucode.com/texts/pylongopgui/pyguiapp.htmlhttp://sayspy.blogspot.com/2007/11/idea-for-process-concurrency.html
>
> If I were doing something like this, I would have the process write
> it's output to a file and periodically check to see if the file has
> data.
>
> Hopefully someone with more knowledge will come along soon.
>
> Mike

Darn.  Is threading the only way to do it?  I was hoping not to have
to avoid that.  Would have thought that there might be a way for
subprocess to handle this automatically.

Thanks for your help,
Brian



More information about the Python-list mailing list