HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- re:How to write error message from ftp command to ...
Operating System - HP-UX
1834395
Members
1690
Online
110066
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
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
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
12-03-2004 08:57 AM
12-03-2004 08:57 AM
re:How to write error message from ftp command to a log file in perl
My system admin can't figure out the configuration to install Net::FTP modules in the HPUX. i am writing a program it require to check the directory and ftp all files to remote place. since i can't use the Net::FTP module, i am using the ftp command in my code. attached is my code for ftp a file. how can i get all the error messages and write to a logfile and to find out if there is sth wrong with the ftp connection or the directory is not exist ...? thanks
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2004 10:19 AM
12-08-2004 10:19 AM
Re: re:How to write error message from ftp command to a log file in perl
Could you repost your attachment with a .txt extension? I can't open it without perl trying to run it.
Ron
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2004 10:33 AM
12-08-2004 10:33 AM
Re: re:How to write error message from ftp command to a log file in perl
It's rather pointless to attach a Perl script (that I wrote) that uses Net::FTP when you say that your admin can't install Net::FTP. If you had at least made an attempt at this I might have tried to help.
The real fix here is to get Net::FTP installed; it's very easy.
The instructions are here:
http://www.cpan.org/modules/INSTALL.html
The good news about Net::FTP is that there is no C code; it's a pure Perl install. The even better news is that if you install a relatively modern version of Perl (e.g. 5.6.1 or later), Net::FTP is bundled with it. If you are running the very olf version of Perl under /usr/contrib then the very first thing you should do in install a lter version of Perl. It's on any Application CD Set at 11.x or you can download from any of the HP-UX Porting Centre's.
The real fix here is to get Net::FTP installed; it's very easy.
The instructions are here:
http://www.cpan.org/modules/INSTALL.html
The good news about Net::FTP is that there is no C code; it's a pure Perl install. The even better news is that if you install a relatively modern version of Perl (e.g. 5.6.1 or later), Net::FTP is bundled with it. If you are running the very olf version of Perl under /usr/contrib then the very first thing you should do in install a lter version of Perl. It's on any Application CD Set at 11.x or you can download from any of the HP-UX Porting Centre's.
If it ain't broke, I can fix that.
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
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP