Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #51975 > unrolled thread
| Started by | Olive <diolu.remove_this_part@bigfoot.com> |
|---|---|
| First post | 2013-08-05 21:38 +0200 |
| Last post | 2013-08-06 09:28 -0400 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.python
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
| From | Olive <diolu.remove_this_part@bigfoot.com> |
|---|---|
| Date | 2013-08-05 21:38 +0200 |
| Subject | Module for dialoging with intercative programs, sockets, files, etc. |
| Message-ID | <20130805213811.48631a88@pcolivier.chezmoi.net> |
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. I for the moment have in mind interacting with a GSM modem (we do it by reading and writing a pseudo serial device file). But we could also want to interact with an interactive program or a socket, etc... Olive
[toc] | [next] | [standalone]
| From | Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> |
|---|---|
| Date | 2013-08-06 10:44 +0200 |
| Message-ID | <0kp6da-e84.ln1@satorlaser.homedns.org> |
| In reply to | #51975 |
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
[toc] | [prev] | [next] | [standalone]
| From | William Ray Wing <wrw@mac.com> |
|---|---|
| Date | 2013-08-06 09:28 -0400 |
| Message-ID | <mailman.258.1375799327.1251.python-list@python.org> |
| In reply to | #52009 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web