[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tip: a shell script to allow omeone to type in a password without it being echoed to the screen



 
    
a shell script to allow omeone to type in a password without it being echoed on the screen:

#!/usr/local/bin/bash

echo -e -n "\033[1;37m Please input Directory Server bind password: \033[8;37m"
read bindpw
echo -e -n "\033[0m "
echo $bindpw


reference:

	Bash Prompt HOWTO <http://metalab.unc.edu/pub/Linux/docs/HOWTO/Bash-Prompt-HOWTO>

Google