Interfacing with terminal programs
Oleg Broytmann
phd at phd.fep.ru
Sat May 12 05:40:56 EDT 2001
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