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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shell scripting a hidden password

Status
Not open for further replies.

JMelsoner

Programmer
May 25, 2001
9
0
0
US
I am trying to shell script a user entry password with read that will echo asterics to the screen rather than leave the password on the screen as the user types it in

Ie. if they type in password
They would see this as they were typing ********

I know you can stty - echo to hide the input while typing but is there a way to do the asteric thing above?

I am working with AIX vers 4.3.3.0 in the KORN shell on a RS6000

Thanks
 
I don't believe there is. ksh does not support reading of individual characters without an ENTER key being hit. Of course, someone else out there might disagree with me. If so, then great - both of us learned something today.

BV :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top