Interfacing with terminal programs
Drifty
drifty at bigfoot.com
Sat May 12 22:43:59 EDT 2001
I will keep that in mind. I have a feeling that I am not going to
find a suitable answer to this in Python directly, but that is okay.
This seems to be more of UNIX scripting problem then a Python problem.
Thanks for the help.
-Brett Cannon
On Sat, 12 May 2001 13:40:56 +0400 (MSD), Oleg Broytmann
<phd at phd.fep.ru> wrote:
>On Sat, 12 May 2001, Drifty wrote:
>> change in a log file. The problem is that I can't figure out how to
>> get Python to interface with the terminal program without deadlocking.
>> I tried using popen2 but it deadlocks when I read from the output fd.
>
> You must always flush output before reading input. And even this is not
>a guarantee - the other program may forget to flush its output.
>
>Oleg.
>----
> Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
> Programmers don't die, they just GOSUB without RETURN.
>
>
More information about the Python-list
mailing list