a guest Aug 18th, 2018 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. use expect script shell script ask password one time for multiple server
  2. echo  "Please enter the password for the entered username:"
  3. stty -echo
  4. read pass
  5. echo "Re-enter Password:"
  6. stty -echo
  7. read passwd
  8. stty echo
  9. if [ $pass != $passwd ];then
  10.     echo "Password doesn't match, please rerun the script"
  11.     exit 1
  12. fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand