Since you don't want password to be not displayed on terminal you need to disable echo before reading password. Once password is read you need to enable it again.
#————————————————————
# Read Password
#————————————————————
/usr/ucb/echo -n “Please Enter Password For User ${SUSER}: “
stty -echo
read SPSWD
stty echo
clear
Sunday, January 5, 2014
Read password from shell script
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment