Search This Blog

Friday, January 23, 2009

Hidden input in linux script i.e a password input

In this 2nd line (read) will accept input from terminal and stores in pass variable.
But input does not appear on the terminal.
Command used is :- stty - which changes and print terminal line settings

stty -echo;
read -p "Enter Password -" pass
echo -e
stty echo;

No comments:

Post a Comment