Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while getopts "H:P:u:p:" Input;
- do
- case ${Input} in
- H) host=${OPTARG};;
- P) port=${OPTARG};;
- u) user=${OPTARG};;
- p) password=${OPTARG};;
- \?) echo "Wrong option given. Please use options -H for host, -P for port, -u for user and -p for password"
- exit 1
- ;;
- esac
- done
Add Comment
Please, Sign In to add comment