This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Still Perl problems


Hello,
  I'm using the latest cygwin 1.3.2 on Windows2000Pro SP2:

$ uname -a
CYGWIN_NT-5.0 C8T 1.3.2(0.39/3/2) 2001-05-20 23:28 i686 unknown
$ perl -v

This is perl, v5.6.1 built for cygwin-multi

Copyright 1987-2001, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.


There is a simple perl script:

use Net::FTP;
$ftp = Net::FTP->new("ftp.netscape.com",Debug => 9);
$ftp->login("ftp",'ftp@ftp');
$ftp->cwd("/");
$ftp->quit;


If I try to execute the script in bash prompt I get :

$ perl ftptest.pl
Can't call method "login" on an undefined value at ftptest.pl line 3.

But if from bash prompt I run "rxvt" and try to run from there everything works just fine:

$ perl ftppushtest.pl

Net::FTP: Net::FTP(2.58)
Net::FTP:   Exporter(5.562)
Net::FTP:   Net::Cmd(2.19)
Net::FTP:   IO::Socket::INET(1.25)
Net::FTP:     IO::Socket(1.26)
Net::FTP:       IO::Handle(1.21)

Net::FTP=GLOB(0xa18d190)<<< 220 ftp24c.newaol.com FTP server (SunOS 5.7) ready.
Net::FTP=GLOB(0xa18d190)>>> user ftp
Net::FTP=GLOB(0xa18d190)<<< 331 Guest login ok, send your complete e-mail address as password.
Net::FTP=GLOB(0xa18d190)>>> PASS ....
Net::FTP=GLOB(0xa18d190)<<< 230-The response `ftp@ftp' is not valid.
Net::FTP=GLOB(0xa18d190)<<< 230-Next time please use your e-mail address as password.
Net::FTP=GLOB(0xa18d190)<<< 230 Guest login ok, access restrictions apply.
Net::FTP=GLOB(0xa18d190)>>> CWD /
Net::FTP=GLOB(0xa18d190)<<< 250 CWD command successful.
Net::FTP=GLOB(0xa18d190)>>> QUIT
Net::FTP=GLOB(0xa18d190)<<< 221 Goodbye.

What is wrong ? Can anybody help me solve this problem?



Regards,

Saulius Gurklys






--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]