bug-wget
[Top][All Lists]
Advanced

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

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


From: Alan Lee
Subject: [Bug-wget] wget unable to download to specified directory
Date: Tue, 28 Sep 2010 15:09:48 +1000

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??

Thanks
Alan


reply via email to

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