portable fork+exec/spawn

Nick Craig-Wood nick at craig-wood.com
Fri May 2 07:30:03 EDT 2008


Brendan Miller <catphive at catphive.net> wrote:
>  On Fri, 02 May 2008 13:25:55 +1000, Ben Finney wrote:
> 
> > URL:http://docs.python.org/lib/module-subprocess.html
> 
>  Awesome. This is exactly what I was hoping existed.

subprocess works well for spawn process, send input, receive output,
read exit code type jobs.

For jobs which require interactivity ie send input, receive output,
send input, receive output, ... it doesn't work well.  There isn't a
good cross platform solution for this yet.  pyexpect works well under
unix and is hopefully being ported to windows soon.

-- 
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick



More information about the Python-list mailing list