I am writting script like
echo "ENTER USERNAME: \c "
read uName
echo "ENTER PASSWORD: \c"
read pwd
In this it is shwng password on screen, I want to hide it, how can I do that
I am writting script like
echo "ENTER USERNAME: \c "
read uName
echo "ENTER PASSWORD: \c"
read pwd
In this it is shwng password on screen, I want to hide it, how can I do that
stty -echo; read pwd; stty echo
Its not working
echo "ENTER PASSWORD: \c"
stty -echo;
read pwd;
stty echo;
Do you get an error message? Do you find anything about "echo" in the local manual page for stty?
No error message nthng, just it is displaying password on the screen
Did you check the manual page?