[Tutor] Telnetlib (Tutor.org) (fwd)
lumbricus@gmx.net
lumbricus@gmx.net
Sun, 11 Aug 2002 20:05:31 +0200 (MEST)
> Hi Levy,
Hello!
[ snip ]
> 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.
perhaps you can start your program via shell script
and then capture stdout with tee(1)
man 1 tee
> Maybe I should tweak the module itself and redirect
> the errors to stderr then redirect stderr to a file?
Sounds interesting.
> Thanks,
>
> Levy
HTH, HAND
J"o!
--
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net