Phoe6 wrote:
> That did help and solved my problem. ":" after \n was just a typo.
Thanks for feedback :) I've had a similar problem once, too.
Regards,
Björn
--
BOFH excuse #166:
/pub/lunch
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 28, 4:15 pm, Bjoern Schliessmann wrote:
> Phoe6 wrote:
> import telnetlib
> tn = telnetlib.Telnet("172.31.128.244")
> tn.read_until("Login: ")
> > '\r\nLogin: '
> tn.write("root\n:")
>
>^^^
>
> With telnet, use "\r\n" for line breaks at *all* times to
Phoe6 wrote:
import telnetlib
tn = telnetlib.Telnet("172.31.128.244")
tn.read_until("Login: ")
> '\r\nLogin: '
tn.write("root\n:")
^^^
With telnet, use "\r\n" for line breaks at *all* times to be on the
safe side. Also, what's the ":" at the end for?
Regards