hello,
i am sandeep, a new mwmmber of this group, while running my program i came across a ftp error,when i tried to search for the same i came across this group, i thought some one here can help me out ,
my perl progarm tries to ftp into device but it is not able to where as i can do the same with same user name and password through the cmd line.
the details follows:-
sub PrepZyXEL {
my %FTP_Config = ( Debug => 0, Timeout => 30 );
my %Common_cfg = (
User => 'admin', # overwrite anonymous user default
Pass => '1234', # overwrite list@... pass default
Dir => ' ', # overwrite slash default
Type => ' I ' # overwrite I (binary) default
);
my $FTP = Net::FTP::Common->new(\%FTP_Config, \%Common_cfg);
&Debug($FTP);
my $Host = "192.168.1.1";
my ($SrcFile, $CopyOp,$Error, $ConfFile);
# can we login to the machine?
print "Attempting to access host: $Host\r\n";
if (! $FTP->login($Host)) {
$Error = "Error, access device at $Host check cables and make sure device is defaulted";
&ReturnResults($Error);
&Debug($Error);
die $Error;
}
....
...
....
}
when i run this program i get the error as :-
Release IP Address for TestNIC
Renew IP Address for TestNIC
Attempting to access host: 192.168.1.1
Net::FTP>>> Net::FTP(2.72)
Net::FTP>>> Exporter(5.562)
Net::FTP>>> Net::Cmd(2.24)
Net::FTP>>> IO::Socket::INET(1.25)
Net::FTP>>> IO::Socket(1.26)
Net::FTP>>> IO::Handle(1.21)
Net::FTP: Unexpected EOF on command channel at zyxel.pl line 43
FATAL: attempt to create Net::FTP session failed.
Most likely reason for this is lack of internet connectivity.
Renew IP Address for TestNIC
Attempting to access host: 192.168.1.1
Net::FTP>>> Net::FTP(2.72)
Net::FTP>>> Exporter(5.562)
Net::FTP>>> Net::Cmd(2.24)
Net::FTP>>> IO::Socket::INET(1.25)
Net::FTP>>> IO::Socket(1.26)
Net::FTP>>> IO::Handle(1.21)
Net::FTP: Unexpected EOF on command channel at zyxel.pl line 43
FATAL: attempt to create Net::FTP session failed.
Most likely reason for this is lack of internet connectivity.
I am still new to this filed, i belive they are many people in this group with expertise in this field can some one help me out of this situation, its critical for me to get this thing going.
Hopping for a reply on this soon,
Thank you,
Sandeep. T R.
Sandeep TR,
Consultant Engineer,
GoRemote Software India Private Limited,
Level 5, "Prestige Solitaire",
#6, Brunton Road,
Bangalore - 560 025.
Phone Direct: +91 80 513 80 843(O) , 9845099832(M).
Board Line: +91 80 513 80 800
Fax Line: +91 80 513 80 900
Consultant Engineer,
GoRemote Software India Private Limited,
Level 5, "Prestige Solitaire",
#6, Brunton Road,
Bangalore - 560 025.
Phone Direct: +91 80 513 80 843(O) , 9845099832(M).
Board Line: +91 80 513 80 800
Fax Line: +91 80 513 80 900
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.