469,306 Members | 1,881 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

Re: portable fork+exec/spawn

On Fri, 02 May 2008 06:30:03 -0500, Nick Craig-Wood <ni**@craig-wood.comwrote:
>Brendan Miller <ca******@catphive.netwrote:
> 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.
I haven't read all of this thread, so excuse me if this is out of place.

There is a good cross-platform solution, in fact. It's Twisted's
spawnProcess API, which works on POSIX and Windows, supports supports
sending and receiving, and doesn't have deadlock issues since it's
event-driven.

Jean-Paul
Jun 27 '08 #1
0 766

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Benoit Dejean | last post: by
3 posts views Thread by Lingyun Yang | last post: by
9 posts views Thread by Daniel Nogradi | last post: by
2 posts views Thread by Rafael Giannetti Viotti | last post: by
3 posts views Thread by Dan Upton | last post: by
4 posts views Thread by Brendan Miller | last post: by
5 posts views Thread by boddah | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.