Hishaam <[EMAIL PROTECTED]> writes:
>Hi,
>In python documentation, i found a telnet example as follows:
>-
>import getpass
>import sys
>import telnetlib
>HOST = "localhost"
>user = raw_input("Enter your remote account: ")
>
Hi there,
This works (but bear in mind I'm about only 30 minutes into my Python
adventure...):
--
def connect(host):
tn = telnetlib.Telnet(host)
return tn
def login(session,user,password):
session.write("\n")
session.read_until("Login: ")
sessi
Hi,
In python documentation, i found a telnet example as follows:
-
import getpass
import sys
import telnetlib
HOST = "localhost"
user = raw_input("Enter your remote account: ")
password = getpass.getpass()
tn = telnetlib.T