我可以在 Linux 命令行上使用 wget 命令从另一台服务器下载文件,例如:
wget ftp_site_name/file_name
但是当我在 perl 脚本中运行 wget 时,我无法下载相同的文件
system "/usr/bin/wget ftp_site_name/file_name";
或者
system "wget ftp_site_name";
以下是错误消息的片段:
Resolving ftp site ...xx.xx.x.xx
Connecting to ftp site|xx.xx.x.xx|:xx... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /pub/??/??/ ...
No such directory `pub/??/??/'.
有什么建议么?