Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. PS3='
  4. Please enter your choice: '
  5.  
  6. options=(
  7. "Password"
  8. "Server"
  9. "Quit"
  10. )
  11. select opt in "${options[@]}"
  12. do
  13. case $opt in
  14. "Password")
  15. echo "fluffyCat42" | pbcopy
  16. exit
  17. ;;
  18. "Server")
  19. ssh root@11.22.33.456
  20. exit
  21. ;;
  22. "Quit")
  23. break
  24. ;;
  25. *) echo Invalid option;;
  26. esac
  27. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement