- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ftp->quit fails with error Bad file number for som...
Operating System - HP-UX
1825161
Members
2341
Online
109679
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2009 02:17 AM
тАО04-01-2009 02:17 AM
ftp->quit fails with error Bad file number for some servers
Hi
I have written a ftp script in perl.It seems to work fine but for some servers it throws an error "Bad file number" while trying to close the connection.What can be the reason for this?How should I resolve it?
Thanks
Debangana
I have written a ftp script in perl.It seems to work fine but for some servers it throws an error "Bad file number" while trying to close the connection.What can be the reason for this?How should I resolve it?
Thanks
Debangana
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2009 02:33 AM
тАО04-01-2009 02:33 AM
Re: ftp->quit fails with error Bad file number for some servers
Shalom,
It would be helpful to actually see the script.
Hard to diagnose without.
Please post. Change the security information.
SEP
It would be helpful to actually see the script.
Hard to diagnose without.
Please post. Change the security information.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2009 09:32 PM
тАО04-01-2009 09:32 PM
Re: ftp->quit fails with error Bad file number for some servers
Thanks for the reply.Following is the ftp section from my code:
if (!$ftp->get($ftp_FileList, $output_file_path."$ftp_FileList"))
{
$logger->error("Status: Can't Get File $ftp_FileList \n");
unlink($output_file_path.$ftp_FileList);
next;
}else
{$logger->info("Update the cache file");
print CASHE_WRITE "$ftp_FileList\n";
$logger->info("Updated the cache file");
}
$ftp->quit or die $logger->error("Couldn't quit ftp session\n"),exit;
$logger->info("---------------------------Quiting FTP----------------------------\n");
close CASHE_WRITE || $logger->error("Can't close $cacheFile opened in write mode\n");
Thanks
Debangana
if (!$ftp->get($ftp_FileList, $output_file_path."$ftp_FileList"))
{
$logger->error("Status: Can't Get File $ftp_FileList \n");
unlink($output_file_path.$ftp_FileList);
next;
}else
{$logger->info("Update the cache file");
print CASHE_WRITE "$ftp_FileList\n";
$logger->info("Updated the cache file");
}
$ftp->quit or die $logger->error("Couldn't quit ftp session\n"),exit;
$logger->info("---------------------------Quiting FTP----------------------------\n");
close CASHE_WRITE || $logger->error("Can't close $cacheFile opened in write mode\n");
Thanks
Debangana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2009 04:50 AM
тАО04-02-2009 04:50 AM
Re: ftp->quit fails with error Bad file number for some servers
Hi
I have tried enabling the debug mode and following is what the code logs:
Net::FTP=GLOB(0x40b6b868)<<< 226 Transfer complete.
Net::FTP=GLOB(0x40b6b868)>>> QUIT
Net::FTP=GLOB(0x40b6b868)<<< 221-You have transferred 131595 bytes in 1 files.
Net::FTP: Unexpected EOF on command channel
Please suggest on how to resolve this problem.
Thanks
Debangana
I have tried enabling the debug mode and following is what the code logs:
Net::FTP=GLOB(0x40b6b868)<<< 226 Transfer complete.
Net::FTP=GLOB(0x40b6b868)>>> QUIT
Net::FTP=GLOB(0x40b6b868)<<< 221-You have transferred 131595 bytes in 1 files.
Net::FTP: Unexpected EOF on command channel
Please suggest on how to resolve this problem.
Thanks
Debangana
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP