Module for dialoging with intercative programs, sockets, files, etc.
William Ray Wing
wrw at mac.com
Tue Aug 6 09:28:36 EDT 2013
On Aug 6, 2013, at 4:44 AM, Ulrich Eckhardt <ulrich.eckhardt at dominolaser.com> wrote:
> Am 05.08.2013 21:38, schrieb Olive:
>> I have found telnetlib which make very easy to interact with a telnet
>> server, especially the read_until command. I wonder if something
>> similar exits for other things that a telnet server.
>
> It's not Python and I haven't played with it extensively, but there is a tool named "expect": https://en.wikipedia.org/wiki/Expect
>
> Uli
> --
> http://mail.python.org/mailman/listinfo/python-list
Ah, but there _is_ a Python equivalent called pexpect with lots of examples and documentation via Google. You can start here:
http://www.pythonforbeginners.com/systems-programming/how-to-use-the-pexpect-module-in-python/
-Bill
More information about the Python-list
mailing list