bash wget script problem

bash wget script problem

Nadav Har'El nyh at math.technion.ac.il
Sun May 6 15:15:26 IDT 2012


On Sun, May 06, 2012, vordoo wrote about "bash wget script problem":
> <html style="direction: ltr;">

Please, don't send here HTML mail...

>     Got a working script, on an ubuntu box, that will not run on arch.
>     It stops on:<br>
> ip_page=$(wget -q -O - http://$router_username:$router_pass@192.168.1.1/Status_Router.asp)

What does "not run" or "stop" actually mean?
Do you get an error? It hangs? Or what?

By the way, is $router_username or $router_pass set? To what? Or, if you
don't want to tell us, can you please at least protect router_pass
(which might perhaps have special characters) from the shell, as in

wget -q -O - "http://$router_username:$router_pass@192.168.1.1/Status_Router.asp"

What shell are you running this in, by the way? Bash? Something else?



-- 
Nadav Har'El                        |                     Sunday, May 6 2012, 
nyh at math.technion.ac.il             |-----------------------------------------
Phone +972-523-790466, ICQ 13349191 |A thing is not necessarily true because a
http://nadav.harel.org.il           |man dies for it. - Oscar Wilde



More information about the Linux-il mailing list