HP3000-L Archives

January 2001, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Kevin Smeltzer <[log in to unmask]>
Reply To:
Kevin Smeltzer <[log in to unmask]>
Date:
Tue, 30 Jan 2001 15:00:49 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (17 lines)
Thanks everyone for the quick replies, the solution came from Ted Ashton.
Seems '$ftp->pasv;' only tells the remote system that FTP is being set to
Passive Mode.
The solution is to tell the HP3000 it also needs to use passive FTP by
including 'Passive=>1' in the call to Net::FTP, see working sample below:

#!/PERL/PUB/perl
use Net::FTP;
$host = "xxxxxxx";
$user = "xxxxxx\@xxx.xxxx-xxx.com";
$pw = "password_remote_server";
$ftp = Net::FTP->new("$host", Debug=>1,Passive=>1);
$ftp->login($user, $pw);
$ftp->binary;
$ftp->put("/path/filename");
$ftp->quit;

ATOM RSS1 RSS2