The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 10:29 PM
Any History igorsch Linux 1 09-25-2004 12:45 PM
Automate FTP / Scripting FTP Transfers Perderabo Answers to Frequently Asked Questions 0 05-20-2004 08:50 PM
text files, ASCII files, binary files and ftp transfers Perderabo Answers to Frequently Asked Questions 0 04-08-2004 04:25 PM
history tselvanin UNIX for Dummies Questions & Answers 2 09-23-2003 03:40 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-26-2007
Nakul Mukerjee Nakul Mukerjee is offline
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.
  #2 (permalink)  
Old 04-30-2007
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
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.
  #3 (permalink)  
Old 04-30-2007
Nakul Mukerjee Nakul Mukerjee is offline
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.
  #4 (permalink)  
Old 04-30-2007
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,643
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
  #5 (permalink)  
Old 05-02-2007
Nakul Mukerjee Nakul Mukerjee is offline
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
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 03:05 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0