Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo -n "Username: "
- read USERNAME
- SORIG=`stty -g`
- stty -echo
- echo -n "Password: "
- read PASSWORD
- stty $SORIG
- #
- # PARAMETERS
- #
- ARRARGS=$@
- clear
- echo "Running commands on the following:"
- for strArg in "$@"; do
- echo $strArg
- done
- echo -n "Is this correct? (y/n): "
- read ANSWER
- if [ "$ANSWER" != "y" ]; then
- echo "Exiting..."
- exit
- fi
- #
- # RUN
- #
- for IP in "$@"
- do
- ./commands.sh "$USERNAME" "$IP" "$PASSWORD"
- done
Add Comment
Please, Sign In to add comment