- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How can I output the ftp result to a text file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
тАО08-01-2006 04:08 PM
тАО08-01-2006 04:08 PM
I would like to know how can I output the ftp result to a text file ?
Thanks,
Kong
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2006 04:27 PM
тАО08-01-2006 04:27 PM
Re: How can I output the ftp result to a text file
this will record everything in the shell until you type exit
And if you want from your automated script then run the script with
> /tmp/ftp.log 2>&1 option
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2006 06:24 PM
тАО08-01-2006 06:24 PM
Re: How can I output the ftp result to a text file
Thanks for your reply.
Yes, I wanted to capture the manual triger ftp result to a text file. Can you please provide more details. I'm not clear with your explaination.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2006 06:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2006 07:10 PM
тАО08-01-2006 07:10 PM
Re: How can I output the ftp result to a text file
If you are having the ftp statements in a scripts then do this
ftp -i -n -v sever_name or IP address << ENDFTP > /path/ftp_output.log
user username password
change the directory for the file on target server
lcd /path/source directory
mput filename
bye
ENDFTP
The file ftp_output.log will have all the ftp commnads and output statements.
IA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2006 10:38 PM
тАО08-01-2006 10:38 PM
Re: How can I output the ftp result to a text file
you can try
ftp hostname | tee /tmp/ftp.log
The 'tee' command will send all output to stdout and the file argument.
mfG Peter