Masking user input in sh script?
Hi, I have a question, I am writing a script that would accept username and password from the user, and do somethign with it.. My problem is that when I do
read username to read what the user wrote, it also shows on the screen what they are typing. How can I make it so that it would not show on the screen what the user is typing? (or mask it with * or something?) |
Code:
stty_orig=`stty -g` http://www.tech-recipes.com/modules....ipes&rx_id=278 |
You can turn off the echo on the terminal.
Code:
#!/bin/bash |
Great, thank you!
|
All times are GMT -5. The time now is 04:37 AM. |