perl Net::FTP vs Ncftp passive mode

J

justme

hi

i am working with Perl 5.004 on Solaris 8 and i am using Net::FTP
module
to transfer a file to an FTP server.
This FTP server was running in PASV mode and in the script, i specify
something
like
.....
$ftp->pasv();
.....
$ftp->put(...,...)
...
$ftp->quit.

But when i run the script, the error shows "Cannot open data
connection". I even used Passive=>1 but also the same error message...

Then when i download and install ncftp and run it using passive mode,
it works.
So the question is, is Perl's implementation of passive mode different
than ncftp's?
thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top