- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Recording ftp sessions
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
Forums
Discussions
Discussions
Discussions
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
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
05-01-2001 03:59 AM
05-01-2001 03:59 AM
I want to record all the individual files being ftp'd.
I am using a "mput p*" line in the script to send all the files, but even redirecting stdout and stderr does not show the detailed output I need, as shown here:
200 PORT command successful.
150 Opening BINARY mode data connection for test.
226 Transfer complete.
228 bytes sent in 0.02 seconds (14.64 Kbytes/s)
How can I get the script to record this detail.
Thanks.
Dermot
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2001 04:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2001 04:27 AM
05-01-2001 04:27 AM
Re: Recording ftp sessions
You need to use the -v option on ftp.
Or, change the following line in /etc/inetd.conf
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -v -L
By adding on the -v and -L, now whenever files are ftp'd to or from your server all the details are logged to /var/adm/syslog/syslog.log - including the filenames.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2001 06:06 AM
05-01-2001 06:06 AM
Re: Recording ftp sessions
By the way, can you tell me what the difference between
ftp -i -n -v 1>>/tmp/ftpd1.err 2>>/tmp/ftpd2.err
and
ftp -i -n -v 2>&1 | tee /tmp/ftplog.err
is?
The information recorded in my ftpd1.err file
and ftplog.err seems identical? What does the
tee and &1 do?
thanks
Dermot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2001 06:34 AM
05-01-2001 06:34 AM
Re: Recording ftp sessions
In the first example all output from the ftp goes to file ftpd1.err and any errors go to file ftpd2.err (none on your screen). In the 2nd example all output and errors go to the same place (the "2>&1") which will be on your screen, then the tee command means make a copy of all the output and errors to a file called ftplog.err
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2001 07:43 AM
05-01-2001 07:43 AM
Re: Recording ftp sessions
Bye,
Dermot