Anyone have any ideas why code using Net::FTP on one machine won't work on another?

I have this piece of code that runs on a Red Hat 9 linux machine and on one Mac OS/X 10.4.1. But this same code does not run on a second OS/X 10.4.1 machine. By not run I mean it waits a long time on the ftp->get line and then dies. It's as though the request for the file has been made yet the server does not send it. What's strange is that on all machines normal ftp works just fine. Any hints on where and how to debug what might be the issue?

perl -e '
 use Net::FTP
 my $ftp = new Net::FTP("ftp.ncbi.nih.gov") or die;
 $ftp->login("anonymous","[EMAIL PROTECTED]") or die;
 $ftp->binary() or die;
 $ftp->cwd("genbank") or die;
 $ftp->get("gbbct1.seq.gz") or die;
'

Thanks in advance.

Regards,
- Robert
http://www.cwelug.org/downloads
Help others get OpenSource software.  Distribute FLOSS
for Windows, Linux, *BSD, and MacOS X with BitTorrent



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to