bash script read server and not read password -
i use curl open username , password router
curl http://192.168.1.1 --user admin:admin |grep -i "stats"
but when made code use curl bash script have problem read server , password file `links_file="server"
pass="passwd" link in `cat "$links_file"` pass in `cat "$pass"` res=$(curl -m 1 "http://${link}:8080" --user admin:${pass} ) if echo $res | grep -i "stats"; `
Comments
Post a Comment