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

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -