Sorry, I messed up the Error message. I did have an: "!", in the
original pass but changed it to "1234" for the problem debugging. with: wget -O - http://admin:"1234"@192.168.1.1/Status_Router.asp wget -O - http://admin:1234@192.168.1.1/Status_Router.asp The error is: Connecting to 192.168.1.1:80... connected. HTTP request sent, awaiting response... 401 Unauthorized Failed writing HTTP request: Bad file descriptor. On 05/07/2012 04:21 PM, Nadav Har'El wrote: On Sun, May 06, 2012, vordoo wrote about "Re: bash wget script problem":wget -O - http://admin:1234@192.168.1.1/Status_Router.asp => bash: 1234@192.168.1.1/Status_Router.asp: event not foundI think we're missing something here - maybe you didn't actually write 1234, but a password containing an exclamation point ("!")? The "event not found" suggests there is an explanation point: Look at this:$ bash $ echo hi!hello bash: !hello: event not found $ echo "hi!hello" bash: !hello": event not found $ echo hi\!hello hi!hello $ password="hi!hello" bash: !hello": event not found $ password="hi\!hello" $ echo $password hi\!hello So, as you can see, bash sucks seriously in this regard - it forces you to quote the "!", but then you are left with that quote... The good news, is that this suckiness only happens for interactive shells, not in shell scripts. In an interactive shell, you can use "set +H" to disable this behavior: $ set +H $ password="hi!hello" $ echo $password hi!hello
|
_______________________________________________ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il