Search the web
Sign In
New User? Sign Up
net-ftp-common
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Some help please   Message List  
Reply | Forward Message #42 of 71 |
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.
 
 
                   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
                            


Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.

Sun Oct 17, 2004 7:19 am

sandy_reply
Offline Offline
Send Email Send Email

Forward
Message #42 of 71 |
Expand Messages Author Sort by Date

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...
Sandeep TR
sandy_reply
Offline Send Email
Oct 17, 2004
7:19 am

... Hi Sandeep ... here, you are calling Debug() before $HOST is defined. I don't see how $HOST can get defined. If you include the complete program, that...
Terrence Brannon
princepawn
Offline Send Email
Oct 17, 2004
12:56 pm

... but also note: you _never_ need to call login() when using Net::FTP::Common - it automatically logs you in before performing any of its other API calls. --...
Terrence Brannon
princepawn
Offline Send Email
Oct 17, 2004
1:02 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help