colors example
[whiptailexamples/.git] / passwd.sh
1 #!/bin/bash
2 PASSWORD=$(whiptail --title "Test Password Box" --passwordbox "Enter your password and choose Ok to continue." 10 60 3>&1 1>&2 2>&3)
3  
4 exitstatus=$?
5 if [ $exitstatus = 0 ]; then
6     echo "Your password is:" $PASSWORD
7 else
8     echo "You chose Cancel."
9 fi