Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Déterminer automatiquement l'user et le mot de passe d'une url
- http://host:port/user/pass/channel
- Ignorer channel si elle apparaît.
- while getopts ":a:p:" opt; do
- case $opt in
- h) arg1="$HOST"
- ;;
- p) arg2="$PORT"
- ;;
- u) arg1="$USER"
- ;;
- P) arg1="$PASS"
- ;;
- t) arg1="$TYPE"
- ;;
- \?) echo "Invalid option -$OPTARG" >&2
- ;;
- esac done
- http://host:port/get.php?username=user&password=pass&type=m3u
- wget http://$HOST:$PORT/get.php?username=$USER&password=$PASS&type=$TYPE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement