<html style="direction: ltr;">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<style>body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;"
bidimailui-detected-decoding-type="UTF-8" text="#000000"
bgcolor="#FFFFFF">
Sorry, I messed up the Error message. I did have an: "!", in the
original pass but changed it to "1234" for the problem debugging. <br>
<br>
with:<br>
wget -O - <a class="moz-txt-link-freetext" href="http://admin">http://admin</a>:"1234"@192.168.1.1/Status_Router.asp<br>
wget -O - <a class="moz-txt-link-freetext" href="http://admin:1234@192.168.1.1/Status_Router.asp">http://admin:1234@192.168.1.1/Status_Router.asp</a><br>
<br>
The error is: <br>
Connecting to 192.168.1.1:80... connected.<br>
HTTP request sent, awaiting response... 401 Unauthorized<br>
Failed writing HTTP request: Bad file descriptor.<br>
<br>
On 05/07/2012 04:21 PM, Nadav Har'El wrote:
<blockquote
cite="mid:20120507132118.GA878@fermat.math.technion.ac.il"
type="cite">
<pre wrap="">On Sun, May 06, 2012, vordoo wrote about "Re: bash wget script problem":
</pre>
<blockquote type="cite">
<pre wrap="">wget -O - <a class="moz-txt-link-freetext" href="http://admin:1234@192.168.1.1/Status_Router.asp">http://admin:1234@192.168.1.1/Status_Router.asp</a> => bash:
<a class="moz-txt-link-abbreviated" href="mailto:1234@192.168.1.1/Status_Router.asp">1234@192.168.1.1/Status_Router.asp</a>: event not found
</pre>
</blockquote>
<pre wrap="">
I 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
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>