(09/27/2010 10:09 PM), Alan Lee wrote:
> Hi,
> 
> I am not sure if this is a bug in wget or if there is any way of getting
> around this.
> 
> I have this following code in my shell script.
> 
> rand=$RANDOM
> `wget -t2 -T30 $url -P/tmp/$rand`
> 
> This works fine with normal downloads. (e.g. http://website.com/file.exe)
> and the file gets downloaded to /tmp/<random number>
> 
> However, if I use a URL like this (http://website.com/get.php?id=02908) the
> file does not get downloaded to /tmp/<random number> instead it will be
> downloaded to the same directory where wget is called.
> 
> I can't seem to find a way to fix this.
> Can anyone help please??

I believe this issue is currently tracked as 
https://savannah.gnu.org/bugs/?21531

Unfortunately, there's no real work-around (other than using -O, or not using
--content-disposition (on the commandline or in the wgetrc)).

-- 
Micah J. Cowan
http://micah.cowan.name/

Reply via email to