hi CimmerianX.
Thanks for your reply.
I am using python2.6.6
Running your script on my linux machine throws me the below error.
tn.read_until("~ $")
File "/usr/lib64/python2.6/telnetlib.py", line 319, in read_until
return self.read_very_lazy()
File "/usr/lib64/python2.6/telnetlib.py", line 395, in read_very_lazy
raise EOFError, 'telnet connection closed'
EOFError: telnet connection closed
Please help me.
Thanks in Advance,
Omkar