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

cron - how to properly run Python script with crontab on every system startup -

elasticsearch - Is the order of operations guaranteed in a bulk update? -

Slow performance first queries on SQL Azure -