Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #52047
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <wrw@mac.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.022 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'exits': 0.09; 'subject:files': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'ah,': 0.16; 'command.': 0.16; 'eckhardt': 0.16; 'received:mac.com': 0.16; 'subject:etc.': 0.16; 'wrote:': 0.18; 'received:10.0.1': 0.19; 'server,': 0.19; 'examples': 0.20; 'aug': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**1': 0.23; 'server.': 0.24; "haven't": 0.24; 'cc:no real name:2**0': 0.24; 'equivalent': 0.26; 'to:2**1': 0.27; 'am,': 0.29; 'wonder': 0.29; 'especially': 0.30; 'url:mailman': 0.30; 'url:wiki': 0.31; 'subject:programs': 0.31; 'url:wikipedia': 0.31; 'url:python': 0.33; 'subject:with': 0.35; 'tool': 0.35; 'something': 0.35; 'but': 0.35; 'there': 0.35; 'interact': 0.36; 'url:listinfo': 0.36; 'charset:us-ascii': 0.36; 'received:10.0': 0.36; 'similar': 0.36; 'url:org': 0.36; 'received:10': 0.37; 'received:17': 0.38; 'called': 0.40; 'url:mail': 0.40; 'easy': 0.60; 'here:': 0.62; 'header:In-reply- to:1': 0.84; 'played': 0.84; '2013,': 0.91; '4:44': 0.91 |
| X-Proofpoint-Virus-Version | vendor=fsecure engine=2.50.10432:5.10.8794,1.0.431,0.0.0000 definitions=2013-08-05_07:2013-08-05, 2013-08-05, 1970-01-01 signatures=0 |
| X-Proofpoint-Spam-Details | rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1305010000 definitions=main-1308060089 |
| Content-type | text/plain; charset=us-ascii |
| MIME-version | 1.0 (Mac OS X Mail 6.5 \(1508\)) |
| Subject | Re: Module for dialoging with intercative programs, sockets, files, etc. |
| From | William Ray Wing <wrw@mac.com> |
| In-reply-to | <0kp6da-e84.ln1@satorlaser.homedns.org> |
| Date | Tue, 06 Aug 2013 09:28:36 -0400 |
| Content-transfer-encoding | quoted-printable |
| References | <20130805213811.48631a88@pcolivier.chezmoi.net> <0kp6da-e84.ln1@satorlaser.homedns.org> |
| To | Olive <diolu.remove_this_part@bigfoot.com>, Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> |
| X-Mailer | Apple Mail (2.1508) |
| Cc | python-list@python.org, William Ray Wing <wrw@mac.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.258.1375799327.1251.python-list@python.org> (permalink) |
| Lines | 23 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1375799327 news.xs4all.nl 15909 [2001:888:2000:d::a6]:33199 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:52047 |
Show key headers only | 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 | Next — Previous in thread | Find similar | Unroll 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