Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use expect script shell script ask password one time for multiple server
- echo "Please enter the password for the entered username:"
- stty -echo
- read pass
- echo "Re-enter Password:"
- stty -echo
- read passwd
- stty echo
- if [ $pass != $passwd ];then
- echo "Password doesn't match, please rerun the script"
- exit 1
- fi
Add Comment
Please, Sign In to add comment