[Tutor] Telnetlib
Levy Lazarre
llazarre@yahoo.com
Sat, 3 Aug 2002 19:56:59 -0700 (PDT)
Hello all,
I am new to the list and already enjoying it very
much. I have a couple a questions about Telnetlib and
hope somebody can help me with them. I am currently
writing a Telnet script to automate some data entry.
Given a telnet object tn, the way to send some text to
the remote server is of course 'tn.write(text)'. But
how do I send function keys such as F4, F7 which
perform some specific tasks in the application I am
working with? Terminal type is VT-200.
Also, when you set the telnet debug level, all debug
messages go by default to sys.stdout. Is there a way
to redirect to a file? I can't find this in the
documentation. Perl's Telnet module allows to do this
but I am trying to get away from Perl.
Thanks in advance
Levy Lazarre
llazarre@yahoo.com
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com