Guest User

Untitled

a guest
Aug 18th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment