Ian Kelly <ian.g.ke...@gmail.com> writes:Or, you could just change the p1's stderr to an io.BytesIO instance.
> On Tue, Nov 13, 2012 at 3:31 AM, andrea crotti
> <andrea.crott...@gmail.com> wrote:
>> but it's a bit ugly. I wonder if I can use the subprocess PIPEs to do
>> the same thing, is it going to be as fast and work in the same way??
> It'll look something like this:
>>>> p1 = subprocess.Popen(cmd1, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
> Note that there's a subtle potential for deadlock here. During the
> Solution would be to poll all the open-ended pipes in a select() loop
Then call p2.communicate *first*.
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.