Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to hide password input on command line

Status
Not open for further replies.

needtohidepassword

Programmer
Jul 28, 2005
1
US
Hi, we are using the tcl shell as an interactive shell for our users. We have limited the commands to only the commands that we want them to have.

When they first open the shell they have to login, and we are looking for a way to eat the password characters so the password is not displayed when they enter it. Has anyone run across any packages that do this, or maybe there is a built in way to do this?

Thanks for your help.
 
Hi, - there's a built in way to solve your problem.
You should use the "entry" command with option "-show"; the following char ( strictly the first char of the following string ) is the displayed character, e.g.

entry .widgetname ..... -show "*"

That applies also for doing copy-and-paste, you ever get the displayed chars ( e.g. "*" ), not the original string.

GL
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top