Question on wget renaming files?

Michael_google gmail_Gersten keybounce at gmail.com
Sat Mar 2 20:30:03 PST 2013


I'm trying to download a file with wget.

It is less than what I expect.

keybounceMBP:147 michael$ wget
"http://www.chickenbones.craftsaddle.org/Files/goto.php?file=CodeChickenCore&a=1"
--2013-03-02 20:11:15--
http://www.chickenbones.craftsaddle.org/Files/goto.php?file=CodeChickenCore&a=1
Resolving www.chickenbones.craftsaddle.org
(www.chickenbones.craftsaddle.org)... 91.189.180.21
Connecting to www.chickenbones.craftsaddle.org
(www.chickenbones.craftsaddle.org)|91.189.180.21|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://www.chickenbones.craftsaddle.org/Files/CodeChicken/CodeChickenCore
0.7.3.jar [following]
--2013-03-02 20:11:15--
http://www.chickenbones.craftsaddle.org/Files/CodeChicken/CodeChickenCore%200.7.3.jar
Connecting to www.chickenbones.craftsaddle.org
(www.chickenbones.craftsaddle.org)|91.189.180.21|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 201204 (196K) [text/plain]
Saving to: ‘goto.php?file=CodeChickenCore&a=1’

Note that while wget followed the 302 link, the file is saved under
the "useless" name, not the actual name.

What do I say to get wget to do what I want -- save the file in the
final name (in this case, CodeChickenCore%200.7.3.jar or
"CodeChickenCore 0.7.3.jar"

-- 
Political and economic blog of a strict constitutionalist
http://StrictConstitution.BlogSpot.com

This message may have been spell checked by a laptop kitten.


More information about the macports-users mailing list