Home > Ftp Error > Ftp Error Bad File Descriptor

Ftp Error Bad File Descriptor

By joining you are opting in to receive e-mail. The relevent portions of the script are below: =============================== ####Connect to Server open (FD1, ">>$logname") || print FD1 "Couldnt open - write $logname\n +" ; my $ftp=new Net::FTP("$server",Timeout=>"300000")|| print FD1 "Can 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 is Ubunu system your default gateway? this contact form

PerlMonks was recently assimilated by The Perl Foundation. edited: 20110104 12:57 GMT to remove spelling mistake[reply] Re^3: Bad File descriptor Error by samarzone (Pilgrim) on Jan 04, 2011 at 12:42UTC I am not sure about the leading backslash problem T3RM1NVT0R View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by T3RM1NVT0R 06-15-2011, 03:32 AM #7 ilmasce LQ Newbie Registered: Jun 2011 Posts: Others exploiting the Monastery: (2)atcroft mandarin As of 2016-10-16 23:43 GMT Sections? http://www.perlmonks.org/bare/?node_id=353287

Local fix Problem summary **************************************************************** * USERS AFFECTED: All users of the IBM Communications Server * * for z/OS Version 1 Release(s) 6, 7, 8 and 9 * * IP: FTP Can put/get without any problem now...I didn't think to routing problems 'cause other ftp commands (cd, ls etc.) were working. Note the direction of the arrows. "<<<" means from the server. Any messages, errors or other wise that are returned by the FTP Server can be retrieved by calling $ftp->message().

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: Here is my code.I left stuff out last time.use Net::FTP;$ftp = Net::FTP ->new("$ip_address",Timeout => 200,debug => 1,ftp_passive => 1)or die "Can't connect: $!n";$ftp->login($username, $password)or die "Still couldn't authenticate.\n";$ftp->binaryor die "could not Net::FTP=GLOB(0x1eb0c44)>>> PORT 192,168,2,31,14,171 Net::FTP=GLOB(0x1eb0c44)<<< 200 PORT command successful. 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

I will get an error of "Bad file descriptor". RE: Bad File Descriptor using NET::ftp pcutler (TechnicalUser) (OP) 27 Oct 08 11:38 Max1x,I had already tried that.The does variable print the correct file name, but NET::ftp still fails with a APAR status Closed as program error. You might want to print $ftp->cwd(), "\n"; before you call ->get to make sure you're in the right directory on the server.[reply][d/l][select] Re^3: Bad File descriptor Error by ikegami (Pope) on

Subscribe You can track all active APARs for this component. Please read the "How to use this forum" article before posting. remote system type is . If you need the last modification time of the file, there is also a mdtm(Filename) command which will give you that.

Our script is returning 'Bad File Descriptor' error where as it is working fine for all the rest of the other 50 FTP servers we have. I like to torture myself 0. by allyc (Scribe) on May 14, 2004 at 10:23UTC You might be able to get more information from Net::FTP. I configured the route to network on the ftp server's routing table, telling that the network can be reached through (Ubuntu box) and it works!

Distribution on physical media is not available in all countries. http://blogeurope.net/ftp-error/ftp-error-450-cannot-open-file.php That's my configuration in a VBox virtualized scenario (XP host) with 2 machines: A. The proxy/firewall (ip is on the same net of the ubuntu system ( on eth0) and the ftp server (ip Quote: Originally Posted by T3RM1NVT0R Let us know ifconfig Close this window and log in.

Having a problem logging in? I premise I'm a networking newbie. We are not able to figure out what suddenly causing the issue. navigate here Password Home Search Forums Register Forum RulesMan PagesUnix Commands Linux Commands FAQ Members Today's Posts Filesystems, Disks and Memory Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE,

will not contain any meaningful result unless the function you have just called explicitly claims to set it. 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: What am I missing?

Thanks Remove advertisements Sponsored Links kishorepotta View Public Profile Find all posts by kishorepotta #2 04-26-2009 sysgate Unix based Join Date: Nov 2006 Last Activity: 18 December

Click Here to receive this Complete Guide absolutely free. Routing, network cards, OSI, etc. You should use ls() to get the list of files and iterate over this list to download selected files instead of a list (@arr) from a different source. -- Regards - I will get an error of "Badfile descriptor".

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. RE: Bad File Descriptor using NET::ftp KevinADC (TechnicalUser) 27 Oct 08 20:07 Quote:I don't have windows machine, so I can't test..., can u try escaping the 2nd \ with a \ 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 his comment is here If yes, do both client uses same firewall to reach to FTP?

Also, adding a Debug => 1 to your new() call may give some helpful clues. Join Us! *Tek-Tips's functionality depends on members receiving e-mail. So the initial failure logs should be used for diagnostic reasons and subsequent errors maybe misleading. This Script sometimes works without any error but sometimes is unable to pull even a single file.

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"; Sym links solutionConfiguring WHM/cPanel tweak settings from SSHHorde database error while taking backup in cPanel/WHM - Quick FixInstalling mod_evasive for apache in cPanel server cPanel/WHM Fixes cPanel/WHM Showing invalid Disk Space Seems liek Ubuntu stops routing as soon as I log out. Questions on how a particular feature works, how to use feature x with feature y...

A good puzzle will wake me up Many. Is it possible that your code is not getting the correct file name? Reason: Outgoing connections are blocked by firewall, or port is blocked for outgoing connections in firewall. This problem remains...any idea?

You need to either specify an absolute path or set the cwd correctly. [reply] Re: Bad File descriptor Error by GrandFather (Sage) on Jan 04, 2011 at 07:12UTC Could it be I will get an error of "Badfile descriptor". Issue here is.. Speedy Servers and Bandwidth Generously Provided by pair Networks Built with the Perl programming language. Unix & Linux Forums > Special Forums > Hardware > Filesystems, Disks

Are there any special characters or Windows-like paths in the script ? By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. my $files = $ftp->ls(); # this returns an arrayref for my $filename (@$files) { # put your code in here to deal with each file } [download] [reply][d/l] Re: Re: Bad Feedback are appreciated : ) You may also like thisCheck active connections to web server - DDOS solutionUnable to install yum-rhn-plugin, please contact CloudLinux (Fix)Enabling second level quotas on openVZ/virtuozzo/VPSCreate new

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). Any help is GREATLY appreciated! 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?). Try the ls() method instead.