|
From: Frode R. <fro...@er...> - 2001-01-24 08:16:44
|
> Hello,
>
> where can I find module select.
> It's not in [My-Jython2.0-Dir]/Lib.
> I got an import error if I try to
> import this module.
> (I.E. it's used by module telnetlib).
> I have no problem with other Libs.
>
> thank you in advance,
> regards
> Markus
Hi,
I have grab the telnet lib from "The Java Telnet Applet" and make some small
modification so it be more as a library for Jython.
Her is a example who I use it:
from telnet import TelnetWrapper
telnet = TelnetWrapper("123.45.78.90")
telnet.login("loginname", "password")
result = telnet.sendLine("ls")
print result
telnet.disconnect()
If somebody want this library send me a mail and will send it.
|