Thanks Deefer,
Problem now solved.
I wasn't setting passive mode correctly.
It is not enough to use:
$ftp->pasv()
You need to pass the constructor option Passive:
$ftp = Net::FTP->new($hostname, Passive=>1); 
Cheers,
Kerry
   
----- Original Message ----- 
From: "getadog" <[EMAIL PROTECTED]>
To: "SLUG List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 27, 2002 12:13 PM
Subject: Re: [SLUG] Re: Perl Net::FTP problem


> On Wed, Feb 27, 2002 at 11:51:21AM +1100, Kerry Seibold wrote:
> > Reposted with debug detail now included.
> > List directory hangs also.
> > Any ideas?
> 
> > Net::FTP=GLOB(0x8282e70)>>> PASV
> > Net::FTP=GLOB(0x8282e70)<<< 530 Not logged in.
> 
> I assume this means you're still in active mode
> and later when you try to download, a firewall is 
> blocking the traffic.
> 
> > Cmd: PASV
> > 227: Entering Passive Mode (139,134,5,124,11,13)
> 
> Here you are now in passive mode, and the download works.
> 
> You probably want to move the $ftp->pasv() to after the
> $ftp->login line.
> 
> http://www.slacksite.com/other/ftp.html
> 
> -- 
> SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
> More Info: http://lists.slug.org.au/listinfo/slug
> 

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to