0

我正在使用 wget 自动下载 Eclipse 的 ShellEd 扩展,但收到错误消息:

http://: Invalid host name.

我之前已经成功使用过几次,所以我认为是因为 SourceForge 使用了镜像。我查看了 wget 的手册页,重点关注referer 和 http_proxy,但仍然不成功。这是我的脚本:

dowloadFile="http://downloads.sourceforge.net/project/shelled/shelled/Shelled%201.0.4/shelled_1_0_4.zip?use_mirror=voxel"
wget "$downloadFile"

谢谢!

4

2 回答 2

9

是下载文件还是下载文件?那里有偏差

于 2009-10-02T11:12:50.563 回答
1

我同意 pavium

$ wget  "$dowloadFile"
--2009-10-02 07:11:41--  http://downloads.sourceforge.net/project/shelled/shelled/Shelled%201.0.4/shelled_1_0_4.zip?use_mirror=voxel
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://voxel.dl.sourceforge.net/project/shelled/shelled/Shelled%201.0.4/shelled_1_0_4.zip [following]
--2009-10-02 07:11:41--  http://voxel.dl.sourceforge.net/project/shelled/shelled/Shelled%201.0.4/shelled_1_0_4.zip
Resolving voxel.dl.sourceforge.net... 72.26.192.194
Connecting to voxel.dl.sourceforge.net|72.26.192.194|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2020011 (1.9M) [application/zip]
Saving to: `shelled_1_0_4.zip.4'

100%[==============================================================================================================================>] 2,020,011   53.8K/s   in 37s

2009-10-02 07:12:18 (53.6 KB/s) - `shelled_1_0_4.zip.4' saved [2020011/2020011]
于 2009-10-02T11:20:31.417 回答