On Aug 6, 2013, at 4:44 AM, Ulrich Eckhardt <ulrich.eckha...@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 -- http://mail.python.org/mailman/listinfo/python-list