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,


Björn

-- 
BOFH excuse #88:

Boss' kid fucked up the machine

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to