Telnetlib
David Fisher
python at rose164.wuh.wustl.edu
Tue Mar 14 17:46:05 EST 2000
Hi Ralf,
If you look in the file telnetlib.py, you will see some useful comments and
a test program. But to answer you question, here's a working example of
accessing a telnet server on my local network. You change the '192.168.1.1'
to the address of your server and off you go. The address can also be
specified with a dns name like 'myserver.mydomain.org'
good luck,
David
>>> import telnetlib
>>> t = telnetlib.Telnet('192.168.1.1')
>>> t.mt_interact()
Red Hat Linux release 6.1 (Cartman)
Kernel 2.2.12-20 on an i586
login: dnf1
dnf1
Password:
Last login: Tue Mar 14 16:30:20 from
[dnf1 at dnf1]$
>>>
----- Original Message -----
From: "Ralf Claus" <ralf.claus at t-online.de>
Newsgroups: comp.lang.python
To: <python-list at python.org>
Sent: Tuesday, March 14, 2000 1:15 PM
Subject: Telnetlib
> Hello,
> i need information about the telnetlib module. The given information's by
> the html help is
> not enough. I need a real example for connecting a telnet Server. Or is
> there an other possibility to start a program on a unix server, if the py
> program is running under winnt?
> Thanks for your help..
More information about the Python-list
mailing list