Re: Subprocess Popen confusion

2020-05-19 Thread Barry Scott
> On 18 May 2020, at 21:50, Dick Holmes wrote: snip > Per Peter's suggestion I tried readline and it works "as expected". I > also discovered that the reason the read operations were stalling was > that they followed a write and the write doesn't actually occur until > "flush" is called ev

Re: Subprocess Popen confusion

2020-05-18 Thread Dick Holmes
In article , __pete...@web.de says... > > Dick Holmes wrote: > > > https://occovid19.ochealthinfo.com/coronavirus-in-oc > > > I'm trying to > > communicate using a continuing dialog between two > > processes on the same system. > > I think pexpect > > https://pexpect.readthedocs.io/en/stable

Re: Subprocess Popen confusion

2020-05-14 Thread Dick Holmes
In article , __pete...@web.de says... > > Dick Holmes wrote: > > > https://occovid19.ochealthinfo.com/coronavirus-in-oc > > > I'm trying to > > communicate using a continuing dialog between two > > processes on the same system. > > I think pexpect > > https://pexpect.readthedocs.io/en/stable

Re: Subprocess Popen confusion

2020-05-14 Thread Terry Reedy
On 5/13/2020 11:13 PM, Dick Holmes wrote: https://occovid19.ochealthinfo.com/coronavirus-in-oc I'm trying to communicate using a continuing dialog between two processes on the same system Try multiprocessing and pipes. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-lis

Re: Subprocess Popen confusion

2020-05-14 Thread Peter Otten
Dick Holmes wrote: > https://occovid19.ochealthinfo.com/coronavirus-in-oc > I'm trying to > communicate using a continuing dialog between two > processes on the same system. I think pexpect https://pexpect.readthedocs.io/en/stable/index.html does this naturally, but I don't know if Windows su

Subprocess Popen confusion

2020-05-13 Thread Dick Holmes
https://occovid19.ochealthinfo.com/coronavirus-in-oc I'm trying to communicate using a continuing dialog between two processes on the same system. I've looked at various mechanisms and the class that seems to fit my needs is Popen in the subprocess module, but I can't seem to get more than a si