|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
From: redhat-devel-list-admin@xxxxxxxxxx [mailto:redhat-devel-list-admin@xxxxxxxxxx]On Behalf Of mara ailiez sy
Sent: Wednesday, January 28, 2004 7:17 PM
Subject: about remote loginHello... I am currently researching about remote login and came across Python's Telnetlib. However, I cannot find a similar library in C. Does anyone know if there is an equivalent library in C or the equivalent functions can be implemented in C.Attached here is the sample code in Python that I want to implement in C:import getpass
HOST = "localhost"
user = raw_input("Enter your remote account: ")
password = getpass.getpass()
tn = telnetlib.Telnet(HOST)
tn.write(user + "\n")
tn.write(password + "\n")
tn.write("exit\n")thanks very much
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!