Message125594
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. |
|
Date |
User |
Action |
Args |
2011-01-06 22:13:41 | rnk | set | recipients:
+ rnk, guettli, astrand, belopolsky, orsenthil, pitrou, ragnar, giampaolo.rodola, tim.golden, abbot, gd2shoe, r.david.murray, brian.curtin, srid, matthieu.labbe, dmalcolm, filippo, Pablo.Bitton |
2011-01-06 22:13:41 | rnk | set | messageid: <1294352021.29.0.464027485365.issue5673@psf.upfronthosting.co.za> |
2011-01-06 22:13:25 | rnk | link | issue5673 messages |
2011-01-06 22:13:25 | rnk | create | |
|