Re: running "python -i" in subprocess shows no prompt

2019-03-19 Thread finnkochinski
Thanks for letting me know that the list takes no attachments. Please find my modified code at the end of this email. I found one problem. I was reading streams with "proc.stderr.readline()", which never returned, because only ">>> " was sent to stderr repeatedly, "\n" only going to stdout. Now

Re: running "python -i" in subprocess shows no prompt

2019-03-18 Thread Terry Reedy
On 3/18/2019 9:10 AM, finnkochin...@keemail.me wrote: I try to start a separate python subprocess using the attached code. This example should catch all stdout and stderr output from the launched subprocess and send commands to its stdin. Subprocess is not intended for interaction. My attemp

Re: running "python -i" in subprocess shows no prompt

2019-03-18 Thread Grant Edwards
On 2019-03-18, wrote: > I try to start a separate python subprocess using the attached > code. This example should catch all stdout and stderr output from > the launched subprocess and send commands to its stdin. The problem > is that the prompt ">>>" asking for then next input is neither sent

Re: running "python -i" in subprocess shows no prompt

2019-03-18 Thread Chris Angelico
On Tue, Mar 19, 2019 at 2:50 AM wrote: > > Hello, > I try to start a separate python subprocess using the attached code. This > example should catch all stdout and stderr output from the launched > subprocess and send commands to its stdin. > The problem is that the prompt ">>>" asking for then

running "python -i" in subprocess shows no prompt

2019-03-18 Thread finnkochinski
Hello, I try to start a separate python subprocess using the attached code. This example should catch all stdout and stderr output from the launched subprocess and send commands to its stdin. The problem is that the prompt ">>>" asking for then next input is neither sent to stdout nor to stderr.