The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Files and dates mastachef UNIX for Dummies Questions & Answers 1 12-03-2007 10:12 AM
FTP - To handle error while transferring files mahalakshmi Shell Programming and Scripting 1 04-04-2007 12:56 AM
Transferring hidden files with scp matrixmadhan UNIX for Dummies Questions & Answers 13 01-16-2007 12:00 PM
transferring files to and from remote computer yogi1 UNIX for Dummies Questions & Answers 6 05-28-2006 06:58 PM
FTP session expiring when transferring files... Need some solution aarora_98 Shell Programming and Scripting 4 12-13-2005 09:28 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-22-2005
Registered User
 

Join Date: Oct 2003
Location: Brazil
Posts: 42
transferring files using ftp but mantaining the dates

Hi guys,

Is there a way I can ftp some files without changing the last-modified dates from them ?

I haven't seen any ftp option to do so.
Or, alternatively, how do I change the last-modified date for a file, if this is possible... ?


Thanks in advance,
Abrahao.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 11-22-2005
Registered User
 

Join Date: Jul 2005
Location: Chennai
Posts: 39
Hi Abrahao,

I think u can better tar the files , ftp it and untar it at the other end ... and the timestamp would be preserved ... try this way ... i guess this wud be better than changing the timestamp manually

SNS
Reply With Quote
  #3 (permalink)  
Old 11-22-2005
Registered User
 

Join Date: Nov 2005
Posts: 1
Abrahao,

You can use rcp command instead to retain modification times access times and modes of the original file. (Use rcp -p)

If you want to change access/modification times use touch command.
touch -m <date-time> <filename>

Regards,
Rajeshwar.
Reply With Quote
  #4 (permalink)  
Old 07-22-2006
Registered User
 

Join Date: Jul 2006
Posts: 10
Quote:
Originally Posted by Sabari Nath S
Hi Abrahao,

I think u can better tar the files , ftp it and untar it at the other end ... and the timestamp would be preserved ... try this way ... i guess this wud be better than changing the timestamp manually

SNS
Hi Sabari,

When I FTP GET the file from my (tp) trading partner's server the files are not in tar format. The only access I have to my tp's server is ftp. So I cannot really tar my tp's file. I will ask my tp to tar the file before I FTP GET it. But what if my tp does not want to tar the file? What should I do?

Thanks in advanced,
XZOR
Reply With Quote
  #5 (permalink)  
Old 07-23-2006
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,453
Second time in a week for this question. So I created a new faq article.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:14 PM.


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

Content Relevant URLs by vBSEO 3.2.0