If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > updated timestamp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-02-04, 17:39
saccskiz saccskiz is offline
Registered User
 
Join Date: Feb 2004
Posts: 143
updated timestamp

hi,
I have a directory called meditrac in which i have 3 sub directories A,B and C
directory A has A.sh shell script file,
directory B has B.sh shell script file,
directory C has C.sh shell script file

I made modifications to all the 3 .sh files in folders A,B and C and all 3 sh files in their folders have the latest timestamp of March 02 13:30

however when i cd .. back to the meditrac folder and list the folders
it is showing

directory A has a modified timestamp if March 02 13:30
whereas directory B and directory C has an old timestamp of Feb 06 15:20

how is this possible ?All the 3 folders A,B and C should have had the latest today's timestamp, right ?? Any ideas/suggestions on this issue is appreciated.
Thanks
Reply With Quote
  #2 (permalink)  
Old 03-03-04, 07:49
praveenpr praveenpr is offline
Registered User
 
Join Date: Jan 2004
Location: Singapore
Posts: 89
What is the time that u r going to see, the access time, modification time or the creation time?
__________________
Thanks and Regards,

Praveen Pulikunnu
Reply With Quote
  #3 (permalink)  
Old 03-03-04, 14:36
saccskiz saccskiz is offline
Registered User
 
Join Date: Feb 2004
Posts: 143
Hi Praveen,
I am looking at the modified time. That's what is not changed for directories B and C. But for directory A it changed

Thanks
Reply With Quote
  #4 (permalink)  
Old 03-04-04, 14:04
fla5do fla5do is offline
Registered User
 
Join Date: Oct 2003
Location: Germany
Posts: 138
Hi saccskiz,
if you make modifications to existing files, the timestamp from the folder will not be updated .

Only, if you move a file to a new name or you create a new file in this folder then the timestamp will be updated.

Please check it again.
__________________
Greetings from germany
Peter F.
Reply With Quote
  #5 (permalink)  
Old 03-04-04, 14:07
saccskiz saccskiz is offline
Registered User
 
Join Date: Feb 2004
Posts: 143
Thank you Peter. I sure will check it out
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On