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
timestamp in the end of a folder psychobeauty UNIX for Dummies Questions & Answers 7 04-13-2008 12:26 PM
timestamp Minguccio75 SUN Solaris 4 02-21-2007 04:06 AM
add timestamp to filename walterja Shell Programming and Scripting 3 11-09-2005 12:42 AM
timestamp rocker40 UNIX for Dummies Questions & Answers 3 10-09-2003 09:09 AM
32-bit timestamp darkspace High Level Programming 0 08-29-2002 11:32 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-15-2003
Henrik Henrik is offline
Registered User
  
 

Join Date: Nov 2002
Location: Ireland
Posts: 25
ftp timestamp

I have written a basic script to ftp files from a local machine to a remote one and put it into a crontab to automate the process as the directory has more files added to it. I also have a cron which periodically removes files from the local directory to stop the filesystem from becoming full. However the after I ftp the file the time stamp changes from the original file.

What I need to know is

(a) Is there any way I can keep the original timestamp
(b) Once the file is ftp'ed accross can I selectively stop it ftping files which have already been transfered.
  #2 (permalink)  
Old 04-16-2003
oombera's Avatar
oombera oombera is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2002
Location: Cleveland, OH
Posts: 804
(a) I don't think so.. When the file is ftp'd to the remote system, it's "creation" time becomes whatever the time is on that system.

(b) Not sure exactly what you mean.. you could delete the file on the local system as soon as it's ftp'd to the remote one.
  #3 (permalink)  
Old 05-02-2003
TRUEST TRUEST is offline
Registered User
  
 

Join Date: Jan 2002
Posts: 144
never tried this but you can tar the file on the host before it is FTPed over. this way, I think only the tar file gets its timestamp updated, not the actual file that is IN the tar file itself.

not sure, try it tho and see if it works
  #4 (permalink)  
Old 05-02-2003
oombera's Avatar
oombera oombera is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2002
Location: Cleveland, OH
Posts: 804
I decided to try it so I zipped a couple files and ftp'ed them to another server .. it worked, the creation times were preserved for the files inside the zip file ..
  #5 (permalink)  
Old 05-03-2003
TRUEST TRUEST is offline
Registered User
  
 

Join Date: Jan 2002
Posts: 144
say what???? so am a genius?? noooooooo, stop playing.

seriously, am happy for you. one day I hope I become the first human UNIX DOCTOR. my logo would be "Is your unix system sick?, if so, COME TO ME, the doctor"

lol
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 05:09 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