Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #52047

Re: Module for dialoging with intercative programs, sockets, files, etc.

Subject Re: Module for dialoging with intercative programs, sockets, files, etc.
From William Ray Wing <wrw@mac.com>
Date 2013-08-06 09:28 -0400
References <20130805213811.48631a88@pcolivier.chezmoi.net> <0kp6da-e84.ln1@satorlaser.homedns.org>
Newsgroups comp.lang.python
Message-ID <mailman.258.1375799327.1251.python-list@python.org> (permalink)

Show all headers | View raw


On Aug 6, 2013, at 4:44 AM, Ulrich Eckhardt <ulrich.eckhardt@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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Module for dialoging with intercative programs, sockets, files, etc. Olive <diolu.remove_this_part@bigfoot.com> - 2013-08-05 21:38 +0200
  Re: Module for dialoging with intercative programs, sockets, files, etc. Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2013-08-06 10:44 +0200
    Re: Module for dialoging with intercative programs, sockets, files, etc. William Ray Wing <wrw@mac.com> - 2013-08-06 09:28 -0400

csiph-web