bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] wget unable to download to specified directory


From: Micah Cowan
Subject: Re: [Bug-wget] wget unable to download to specified directory
Date: Tue, 28 Sep 2010 10:21:22 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100915 Thunderbird/3.0.8

(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

[Prev in Thread] Current Thread [Next in Thread]