rechanel 2010-03-23
#!/bin/bash
ReadPassword(){
#turn off terminal echo to prevent peeping!
echo -n ">>> "$1
stty_orig=`stty -g`
stty -echo
read tempstr
stty $stty_orig
eval "$2=$tempstr"
echo "******"
}
ReadString(){
echo -n ">>> "$1
read tempstr
eval "$2=$tempstr"
}
ReadPassword "Please input your password:" MYPASSWD
echo $MYPASSWD <?php. if (!empty($_POST)) {. $data1 = $_POST["data1"];$data2 = $_POST["data2"];$fuhao = $_POST["fuh
test-f /etc/resolv.conf &&echo"File /etc/resolv.conf found."||echo"File /etc/resolv.conf not found."