Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- amqBaseURL="http://10.199.199.199:8080"
- /usr/bin/wget --http-user=admin --http-password=admin $amqBaseURL/admin/ -O amq1.html
- store=`cat amq1.html |sed -n '/Store/{n;p}'|grep -o "[0-9]*"`
- echo -e "$store"
- --2019-01-23 21:25:13-- http://10.199.199.199:8080/admin/
- Connecting to 10.199.199.199:8080... connected.
- HTTP request sent, awaiting response... 401 Unauthorized
- Reusing existing connection to 10.199.199.199:8080.
- HTTP request sent, awaiting response... 200 OK
- Length: 7363 (7.2K) [text/html]
- Saving to: “amq1.htmlâ€
- 100%[==========================================================================================================>] 7,363 --.-K/s in 0s
- 2019-01-23 21:25:13 (251 MB/s) - “amq1.html†saved [7363/7363]
- 0
- 100
Add Comment
Please, Sign In to add comment