Interfacing with terminal programs

Emile van Sebille emile at fenx.com
Sun May 13 09:46:14 EDT 2001


Another option is telnetlib.

--

Emile van Sebille
emile at fenx.com

---------
"Drifty" <drifty at bigfoot.com> wrote in message
news:3afdf48a.959795 at news.earthlink.net...
> 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