The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
History Vivek788 Shell Programming and Scripting 7 05-21-2008 07:29 PM
Any History igorsch Linux 1 09-25-2004 09:45 AM
Automate FTP / Scripting FTP Transfers Perderabo Answers to Frequently Asked Questions 0 05-20-2004 05:50 PM
text files, ASCII files, binary files and ftp transfers Perderabo Answers to Frequently Asked Questions 0 04-08-2004 01:25 PM
history tselvanin UNIX for Dummies Questions & Answers 2 09-23-2003 12:40 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-26-2007
Registered User
 

Join Date: Apr 2007
Posts: 3
History of old FTP transfers

How can one find the name and size of files ftp'ed during an old ftp transfer.

Is there any log where these details are stored or any UNIX command which can provide these details.

Thanks in advance.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-30-2007
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,314
The FAQ submission queue is not a place to submit a question which you think might be asked quite frequently. It is a place to create a thread that contains some answers to the more frequently asked questions.

And regarding your question, unless your ftp script (if you have one) has kept these details, you won't find this information stored by the system.
Reply With Quote
  #3 (permalink)  
Old 04-30-2007
Registered User
 

Join Date: Apr 2007
Posts: 3
Hi blowtorch,
Please let me know where should I post any new queries then.

Regarding the FTP query I have posted, I am not using any script. Just using the UNIX ftp command to transfer files. Are these details not stored anywhere, in any of the logs.

If this is so then is there any method by which I can retrieve these details for new FTP transfers. I assume that since for old ftp transfers these details are not stored by the system I can't retrieve them in anyway.
Reply With Quote
  #4 (permalink)  
Old 04-30-2007
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,359
You have to do something like this:
Code:
echo "
open node
USER pass pswd
verbose
cd /somewhere
put somefile
bye 
" > /usr/bin/ftp -n >>  /path/to/myftp.log
Reply With Quote
  #5 (permalink)  
Old 05-02-2007
Registered User
 

Join Date: Apr 2007
Posts: 3
Hi Jim,
Thanks for the reply. Need some clarifications regarding the code snippet you have given. I believe this is a shell script for storing details of new ftp transfers in a file.

echo "
open node
# Open connection to the remote server
USER pass pswd
# Connect using user-id and password
verbose
# Switch off verbose
cd /somewhere
put somefile
# Some instructions
bye
" > /usr/bin/ftp -n >> /path/to/myftp.log
# What does '> /usr/bin/ftp -n' do exactly. Should it be reading '<' from /usr/bin/ftp and then writing to a file.
# How can I go about implementing this script so that details of all new ftp transfers are logged in a file.

Thanks in Advance
Nakul
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:00 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0