Interacting with external program -pty?

Emile van Sebille emile at fenx.com
Tue Jan 18 09:06:16 EST 2000


Niklas,

Look for expect.py on the net and at telnetlib.py in
the standard distribution.

HTH

Emile van Sebille
emile at fenx.com
-------------------


----- Original Message -----
From: <Niklas.Blomberg at hassle.se.astra.com>
To: <python-list at python.org>
Sent: Tuesday, January 18, 2000 4:17 AM
Subject: Interacting with external program -pty?


> Dear all,
>
> I would appreciate some advice on how to script an external
interactive
> process(program) using python. In addition to sending commands (which
is
> straightforward) I need to be able to capture the output (which can be
> extensive) for further downstream processing. Since the program
expects a
> terminal pipes don't work - the output is buffered - I have started to
look
> at the pty module. This is uncharted territory for me and any advice
both on
> possible solutions and perhaps availiable example code would be most
> appreciated.
>
> I'll be happy to post a summary.
>
> Thanks,
> Niklas
>
> -----
> Niklas Blomberg
> AstraZeneca Structural Chemistry Laboratory
> niklas.blomberg at astrazeneca.com
>
>
>
> --
> http://www.python.org/mailman/listinfo/python-list
>






More information about the Python-list mailing list