Guest User

Untitled

a guest
May 31st, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. while getopts "H:P:u:p:" Input;
  2. do
  3. case ${Input} in
  4. H) host=${OPTARG};;
  5. P) port=${OPTARG};;
  6. u) user=${OPTARG};;
  7. p) password=${OPTARG};;
  8. \?) echo "Wrong option given. Please use options -H for host, -P for port, -u for user and -p for password"
  9. exit 1
  10. ;;
  11. esac
  12. done
Add Comment
Please, Sign In to add comment