SPUG: CPAN & passive ftp?

Parr, Ryan Ryan.Parr at wwireless.com
Wed Apr 24 23:54:48 CDT 2002


Feeling tired and lazy I didn't go through the doco, but from the code it
doesn't look like you can. You may be able to with CPANPLUS though...

If you're using CPAN version 1.59_54 then this ought to do it. If you're
using some other version then you get the picture. If you don't want to do
it in such an inelegant fashion, I don't blame you.

2127c2127
<   my $ftp = Net::FTP->new($host);
---
>   my $ftp = Net::FTP->new($host, Passive => 1);

Of course, that makes it *always* passive.

-- Ryan Parr

Common sense is the collection of prejudices acquired by age eighteen.
		-- Albert Einstein


-----Original Message-----
From: dancerboy [mailto:dancerboy at strangelight.com] 
Sent: Wednesday, April 24, 2002 8:44 PM
To: Seattle Perl Users Group
Subject: SPUG: CPAN & passive ftp?


So, I've been having all sorts of weird behaviour with CPAN on my 
MacOS X box at home, and I suddenly realized what I think the problem 
is:  my firewall setup requires that I do all my ftp'ing in passive 
mode.  I've looked through the CPAN configuration options, and can't 
seem to find anything that would tell it to do it's ftp'ing 
passively.  Is there a way to do this?

-jason

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
     Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
     Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org




More information about the spug-list mailing list