Re: How to use the returned telnet object after creating the telnet session.

2015-09-13 Thread Denis McMahon
On Sun, 13 Sep 2015 00:38:03 -0700, manjunatha.mahalingappa wrote: > Assume that I will pass IP and port information from a function to open > the telnet session. have opened the telnet session and after opening the > telnet session I returned telnet object to calling function. >

How to use the returned telnet object after creating the telnet session.

2015-09-13 Thread manjunatha . mahalingappa
Hello all, First I would like thank you for creating such good platform for discussing python..!!! Assume that I will pass IP and port information from a function to open the telnet session. have opened the telnet session and after opening the telnet session I returned telnet object to

Re: Automating a telnet session with an echo to stdout

2007-06-04 Thread Samuel
On Sat, 02 Jun 2007 17:41:01 +, Samuel wrote: > I am trying to automate a telnet session (currently using Python's > telnetlib) and would like to echo any response of the remote host to > stdout, as soon as it arrives on telnetlib's open TCP socket. For the records: Bec

Automating a telnet session with an echo to stdout

2007-06-02 Thread Samuel
Hi, I am trying to automate a telnet session (currently using Python's telnetlib) and would like to echo any response of the remote host to stdout, as soon as it arrives on telnetlib's open TCP socket. Currently I print the return value of the read_some() method (or other read* m

Re: telnet session

2006-03-29 Thread Eddie Corns
[EMAIL PROTECTED] writes: >hi >i am using a telnet session to simulate an authentication mechanism >USER = "user" >PASSWORD = "password" >try: >telnet = telnetlib.Telnet(HOST) >telnet.set_debuglevel(5) >telnet.read_until

Re: telnet session

2006-03-29 Thread Paul Rubin
[EMAIL PROTECTED] writes: > When i purposely input a wrong password, it "hangs" at the login prompt > waiting for > login and Password. The host i am telnetting to is a unix server. > How can i "exit" this login prompt if the user keys in wrong password > in my script? It looks to me like after y

telnet session

2006-03-29 Thread eight02645999
hi i am using a telnet session to simulate an authentication mechanism USER = "user" PASSWORD = "password" try: telnet = telnetlib.Telnet(HOST) telnet.set_debuglevel(5) telnet.read_until("login: ") telnet.write(USER + "\n&qu

telnet session

2006-03-29 Thread eight02645999
hi i am using a telnet session to simulate an authentication mechanism USER = "user" PASSWORD = "password" try: telnet = telnetlib.Telnet(HOST) telnet.set_debuglevel(5) telnet.read_until("login: ") telnet.write(USER + "\n&qu