Re: using telnetlib
- From: "Phoe6" <orsenthil@xxxxxxxxx>
- Date: 28 Feb 2007 04:53:14 -0800
On Feb 28, 4:15 pm, Bjoern Schliessmann <usenet-
mail-0306.20.chr0n...@xxxxxxxxxxxxxxx> wrote:
Phoe6 wrote:
'\r\nLogin: 'import telnetlib
tn = telnetlib.Telnet("172.31.128.244")
tn.read_until("Login: ")
tn.write("root\n:")
^^^
With telnet, use "\r\n" for line breaks at *all* times to be on the
safe side.
Thanks a lot, Björn.
That did help and solved my problem. ":" after \n was just a typo.
--
Senthil
.
- References:
- using telnetlib
- From: Phoe6
- Re: using telnetlib
- From: Bjoern Schliessmann
- using telnetlib
- Prev by Date: Re: design question: no new attributes
- Next by Date: Re: py2exe, library.zip and python.exe
- Previous by thread: Re: using telnetlib
- Next by thread: msvcr71.dll
- Index(es):