I can download a file from another server using wget command on a Linux command line, example:
wget ftp_site_name/file_name
But I could not download the same file when I run wget inside a perl script
system "/usr/bin/wget ftp_site_name/file_name";
or
system "wget ftp_site_name";
Here is the snippet of the error message:
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/??/??/'.
Any suggestions?