Re: telnetlib problems

2006-03-02 Thread Eddie Corns
[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

Re: telnetlib problems

2006-03-01 Thread vercingetorix52
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

Re: telnetlib problems

2006-03-01 Thread Eddie Corns
[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 :) >#

Re: telnetlib problems

2006-02-28 Thread vercingetorix52
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

telnetlib problems

2006-02-28 Thread vercingetorix52
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