Home > Archive > Tcl > March 2004 > Gettting password from Tcl script
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Gettting password from Tcl script
|
|
|
| Hello,
How can I get a password from the user without display what the
user enter ? (maybe only asterisks)
Thnaks,
Liat
| |
| YekSoon 2004-03-28, 10:35 pm |
| liat wrote:
> Hello,
>
> How can I get a password from the user without display what the
> user enter ? (maybe only asterisks)
>
> Thnaks,
> Liat
is this what you are looking for?
==
entry .e -show *
pack .e
==
YekSoon
http://neusteps.com
Hosting for Tcl works:
B.Serve VPS hosting; ROOT control at shared hosting prices
http://neusteps.com/Products/B.Serve.html
| |
| Andreas Schubert 2004-03-28, 10:35 pm |
|
"liat" <liatsh@xor-t.com> wrote in message
news:1d82bb5a.0403280359.6f03f0bd@posting.google.com...
> Hello,
>
> How can I get a password from the user without display what the
> user enter ? (maybe only asterisks)
>
> Thnaks,
> Liat
with tclsh
exec stty -echo
puts -nonewline "Type password: "; flush stdout
gets stdin passwd
exec stty echo; puts ""
in $passwd is the typed password
| |
|
|
|
|
|