It seems like you might be trying to write data to the subprocess (via STDIN) as well as read its output (via STDOUT) interactively.
It seems like you might be trying to write data to the subprocess (via STDIN) as well as read its output (via STDOUT) interactively. As mentioned in the answer to this SO question, that is a no-no! You could use Popen.
Communicate, but that is a blocking call which will wait for all communication to finish (you can't poll as you do in your example).
Good link. I didn't understand the deadlocking issue before. I'm trying to get communicate working but it's not so far.
See my comment above. – tanders12 Oct 3 at 20:26 @tanders12: What problems are you having with communicate()? – jwd Oct 3 at 22:34 communicate() appears to buffer everything until the child exits.
I need it line buffered or unbuffered. I'm trying to accomplish this without changing the code in the child. Right now I'm attempting to make pexpect work and it looks promising.
– tanders12 Oct 3 at 22:42.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.