$ftp=Net::FTP->new($host,Timeout=>240) or die "connect\n";
print "Created new FTP method\n" ;
$ftp->login("xxx","yyy") or die "cannot login\n";
It fails after print statement, The ouptput i got is
Net::FTP>>> Net::FTP(2.72)
Net::FTP>>> Exporter(5.58)
Net::FTP>>> Net::Cmd(2.24)
Net::FTP>>> IO::Socket::INET(1.27)
Net::FTP>>> IO::Socket(1.28)
Net::FTP>>> IO::Handle(1.24)
Net::FTP=GLOB(0x1a04110)<<< 220 FTP server (Hummingbird Ltd. (HCLFTPD
+) Version 10.0.0.0) ready.
Created new FTP
Net::FTP=GLOB(0x1a04110)>>> user GGGG
Net::FTP=GLOB(0x1a04110)<<< 331 Password required for GGGG.
Net::FTP=GLOB(0x1a04110)>>> PASS ....
Net::FTP=GLOB(0x1a04110)<<< 530 User GGGG: can't change directory to \
+\DATA\ GGGG $.
Cannot login
when i ftp through DOS prompt it gave me
ftp> open
To a.aaa.aaa.aaa
Connected to a.aaa.aaa.aaa.
220 FTP server (Hummingbird Ltd. (HCLFTPD) Version 10.0.0.0) ready.
User (a.aaa.aaa.aaa:(none)): username
331 Password required for ggggg.
Password:
530 User ggggg: can't change directory to \\gggg\ddddd.
Login failed.
In reply to FTP error
by YGP
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.