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 > 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 and shell scripting languages 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 02:12 PM
FTP - To handle error while transferring files mahalakshmi Shell Programming and Scripting 1 04-04-2007 03:56 AM
Transferring hidden files with scp matrixmadhan UNIX for Dummies Questions & Answers 13 01-16-2007 04:00 PM
transferring files to and from remote computer yogi1 UNIX for Dummies Questions & Answers 6 05-28-2006 09:58 PM
FTP session expiring when transferring files... Need some solution aarora_98 Shell Programming and Scripting 4 12-13-2005 01:28 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-22-2005
435 Gavea 435 Gavea is offline
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.
  #2 (permalink)  
Old 11-23-2005
Sabari Nath S Sabari Nath S is offline
Registered User
  
 

Join Date: Jul 2005
Location: Chennai
Posts: 46
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
  #3 (permalink)  
Old 11-23-2005
rajeshwar_ancha rajeshwar_ancha is offline
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.
  #4 (permalink)  
Old 07-23-2006
XZOR XZOR is offline
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
  #5 (permalink)  
Old 07-23-2006
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
Second time in a week for this question. So I created a new faq article.
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 07:28 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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