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

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 04-15-2003
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.
Forum Sponsor
  #2  
Old 04-16-2003
oombera's Avatar
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  
Old 05-02-2003
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  
Old 05-02-2003
oombera's Avatar
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  
Old 05-03-2003
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
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:44 AM.


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 Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0