Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash read password

#!/bin/sh
# A POSIX compliant answer
stty -echo
printf "Password: "
read PASSWORD
stty echo
printf "
"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bash #read #password
ADD COMMENT
Topic
Name
6+2 =