[Tutor] Telnetlib (Tutor.org) (fwd)

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Sat, 10 Aug 2002 15:20:25 -0700 (PDT)


Hi Levy,

I hope you don't mind, but let me forward this to the rest of Tutor; there
should be people there who can give suggestions on getting Telnetlib to
send errors to a custom file.

About password input: is it possible to use the 'getpass' module for this?
It handles the display of a prompt, and also disguises the user's
keystrokes so that the password doesn't show on screen.


Best of wishes to you!

---------- Forwarded message ----------
Date: Tue, 6 Aug 2002 19:55:37 -0700 (PDT)
From: Levy Lazarre <llazarre@yahoo.com>
To: dyoo@hkn.eecs.berkeley.edu
Subject: Telnetlib (Tutor.org)

Hi Danny,

Thanks for your suggestion about redirecting stderr to
a file. The problem is that the TelnetLib module sends
the errors to stdout, not stderr. I cannot redirect
stdout because I prompt the user for a user ID and
password and they would not see those prompts if I
redirect stdout.
Maybe I should tweak the module itself and redirect
the errors to stderr then redirect stderr to a file?

Thanks,

Levy

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com