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: Alan Lee
Subject: Re: [Bug-wget] wget unable to download to specified directory
Date: Thu, 7 Oct 2010 12:03:33 +1100

Hi Micah,

Thanks for the reply.

I just notice another strange problem which is slightly related to the
previous mentioned bug.

There are some websites which I try to download files and it gets copied to
my home folder instead of the destination that I wanted it to go to (and
those URLs does not contains special characters).

You can try if possible.

wget http://supersexe.net/10012/HotCelebrities.exe -P/home/test/1234/

(Please note that the downloaded file might be malware)

The file doesn't get downloaded to /home/test/1234

Please help.

Regards,
Alan



On Wed, Sep 29, 2010 at 3:21 AM, Micah Cowan <address@hidden> wrote:

> (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]