[EMAIL PROTECTED] writes:
>Thanks for the reply. I've replaced the call to read_very_eager() with
>read_until() and enabled debugging messages. My script now looks like
>this...
>#
>import telnetlib
>tn = telnetlib.Telnet('192.168.100.11')
>tn.set_debuglevel(9)
>tn
Thanks for the reply. I've replaced the call to read_very_eager() with
read_until() and enabled debugging messages. My script now looks like
this...
#
import telnetlib
tn = telnetlib.Telnet('192.168.100.11')
tn.set_debuglevel(9)
tn.read_until('login: ', 5)
tn.write
[EMAIL PROTECTED] writes:
>I'm trying to use a python script to access an embedded computer
>running linux and connected via a crossover ethernet cable using the
>following script...
>...and I realize the username and password is not realistic... I'm
>still in "proof of concept" stage here :)
>#
I just hit upon something that seems to work...
##
import telnetlib
from select import select
tn = telnetlib.Telnet('192.168.100.11')
sock = tn.get_socket()
tn.read_until('login: ', 5)
select([sock], [], [], 5)
tn.write('user\n')
tn.read_until('Password: ', 5)
select([so
I'm trying to use a python script to access an embedded computer
running linux and connected via a crossover ethernet cable using the
following script...
...and I realize the username and password is not realistic... I'm
still in "proof of concept" stage here :)
#
import t