Home > Ftp Error > Ftp Error Bad File Descriptor

Ftp Error Bad File Descriptor

Net::FTP>>> Net::FTP(2.77) Net::FTP>>> Exporter(5.62) Net::FTP>>> Net::Cmd(2.29) Net::FTP>>> IO::Socket::INET(1.31) Net::FTP>>> IO::Socket(1.30_01) Net::FTP>>> IO::Handle(1.27) Net::FTP=GLOB(0x1f04884)<<< 220 FreeFloat Ftp Server (Version 1.00). ftp> get sources.list local: sources.list remote:sources.list ftp: setsockopt (ignored): Permission denied ---> PORT 10,0,10,24,179,226 200 PORT subcommand request successfull. ---> RETR sources.list 425 Not able to open data connection No problem T3RM1NVT0R View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by T3RM1NVT0R 06-13-2011, 09:21 AM #3 ilmasce LQ Newbie Registered: Jun 2011 Posts: Subscribe You can track all active APARs for this component. Source

If yes, do both client uses same firewall to reach to FTP? Click Here to join Tek-Tips and talk with other members! We haven't made any changes on our server and remote severt for the last 12 months. if( -f $first_check) { print FD1 "$filename exist, So no need to download \n"; } else { ..... $ftp->binary(); $ftp->get($filename2) or $newerr=1; #|| print "$filename2 can not be downloaded error $!\n"; http://www.perlmonks.org/bare/?node_id=353287

All rights reserved.Unauthorized reproduction or linking forbidden without expressed written permission. when FTPed the files using Perl scripts, only empty files ( 0 byte) are getting created on the remote server and data is not getting written onto the server. we need to send some xml & audio files to a remote FTP server from a Linux box, we are doing this in Perl script using Net::FTP->.

Reason: new elements added ilmasce View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by ilmasce 06-13-2011, 02:38 PM #4 T3RM1NVT0R Senior Member In case of such error, we manually (from DOS prompt) connect(FTP) to Unix based server and get files through "mget" command. If you use backslashes in your windows directory path definitions with activeperl the best thing to do is use single-quotes:$path = 'C:\Windows';perl will interpolate that correctly and Windows will open the But we are able to manually transfer files to FTP server through a FTP tool but they fail when we try to do the same through Perl script.

Forum Operations by The UNIX and Linux Forums Front page | perl.beginners | Postings from January 2003 ftp: error Bad file descriptor Thread Previous | Thread Next From: michael kramer Date: RE: Bad File Descriptor using NET::ftp max1x (Programmer) 27 Oct 08 12:37 I don't have windows machine, so I can't test..., can u try escaping the 2nd \ with a \ by castaway (Parson) on May 14, 2004 at 12:12UTC I don't see you using the date/time there. (Surely that -f gets a filename?). APAR status Closed as program error.

Regards Amit[reply] Re^3: Bad File descriptor Error by cjb (Friar) on Jan 04, 2011 at 12:56UTC It looks like the ftp server can't find the file you're requesting. ilmasce View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by ilmasce 06-15-2011, 05:50 AM #8 ilmasce LQ Newbie Registered: Jun 2011 Posts: will not contain any meaningful result unless the function you have just called explicitly claims to set it. By joining you are opting in to receive e-mail.

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: Sirs, We have an Automated FTP script that pulls file from a server. http://grokbase.com/t/perl/beginners/031d2vw0c8/ftp-error-bad-file-descriptor Try the ls() method instead. Can you execute the same task against other machine ? fails. (And assuming you are using at least the 'warnings pragma, else it will just complain siliently.) C.[reply][d/l] Re: Re: Bad file descriptor' error with automated FTP script.

Anything is fair game. this contact form Close this window and log in. So the initial failure logs should be used for diagnostic reasons and subsequent errors maybe misleading. Quote: Originally Posted by T3RM1NVT0R Also run the ftp from debian server using the following switch: ftp -d ip_or_dnsname_of_the_server -d is used for debugging, lets see if we get more information

Here is the script ========================================= use File::Path; use File::Copy; use File::Basename; use Net::FTP; open(FILE, "<", "api_log_file.txt"); while() { chomp; push(@arr, $_); } close(FILE); chdir("C:/OzoneAPI3Regresssion/Logs"); print "Connecting to HH Device ................ Last edited by ilmasce; 06-13-2011 at 10:25 AM. This problem remains...any idea? have a peek here How do I use this? | Other CB clients Other Users?

Join our community today! Find all posts by sysgate #3 04-28-2009 kishorepotta Registered User Join Date: Apr 2009 Last Activity: 22 July 2009, 2:22 PM EDT Posts: 2 Thanks: 0 Thanked 0 Alistair [reply] Re: Re: Bad file descriptor' error with automated FTP script.

I will get an error of "Badfile descriptor".

Create A New User Node Status? Debian system conf: Code: eth0 Link encap:Ethernet HWaddr 08:00:27:dd:ca:06 inet addr: Bcast: Mask: inet6 addr: fe80::a00:27ff:fedd:ca06/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:242 errors:0 dropped:0 overruns:0 frame:0 TX packets:54 trouble with file descriptor RE: :Handle, fdopen, and file descriptor # RE: :Handle, fdopen, and file descriptor # Discussion Navigation viewthread | post Discussion Overview groupbeginners @ Notice: Undefined variable: pl_domain_short Is it possible that your code is not getting the correct file name?

I receive from 200 to 600 files everyday on the ftp server and some days it works completely and other days, I receive 10 files and then it says bad file True laziness is hard work [reply] Re: Bad File descriptor Error by samarzone (Pilgrim) on Jan 04, 2011 at 08:00UTC am trying to get a list of log files from a ilmasce View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by ilmasce 06-10-2011, 01:09 PM #2 T3RM1NVT0R Senior Member Registered: Dec 2010 Location: http://xhpcreations.com/ftp-error/ftp-450-file-opening-error.html Nodes You Wrote Super Search List Nodes By Users Newest Nodes Recently Active Threads Selected Best Nodes Best Nodes Worst Nodes Saints in our Book Leftovers?

Here is my code. That's my configuration in a VBox virtualized scenario (XP host) with 2 machines: A. Strangely I see a "\" is being getting added to filename by "get()". eval { $ftp = Net::FTP->new($remoteServerIP, Debug => 0) or $exitModule='TRUE' }; if ([email protected] or $exitModule eq 'TRUE') { log_error("ERROR: Failed to connect to " ) ; eval { $ftp->close() } }else{

What does this mean. This means that network and files are proper, but why is the script unable to pull with first error_msg as "Bad file descriptor" and all the other files give error_msg as Resources Join | Indeed Jobs | Advertise Copyright © 1998-2016 ENGINEERING.com, Inc. The problem is that psListD() is called twice, even when it cleans up and returns a fatal error on the first call.

Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework. Socks just get in the wayResults (237 votes). Error during transmission" (when tried to push the files using above Perl code) since two months before that we were able to transfer the files. Search Forums Show Threads Show Posts Tag Search Advanced Search Unanswered Threads Find All Thanked Posts Go to Page... unix and linux commands - unix shell scripting Not able