Reid Kleckner <r...@mit.edu> added the comment:

Pablo, so if I understand the issue you've run into correctly, you are using 
shell redirection to redirect stdout to a file, and then attempting to read 
from it using stdout=subprocess.PIPE.

It seems to me like this behavior is expected, because the shell will close 
it's current stdout file descriptor and open a new one pointing at "file".  
When python tries to read from its end of the pipe, it complains that the fd 
has been closed.

I can avoid the problem here either by not reading stdout or by not redirecting 
to a file.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5673>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to