LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-30-2010, 01:03 PM   #1
laki47
Member
 
Registered: Feb 2009
Posts: 33

Rep: Reputation: 15
File modification time - question


Hi,

The tail of my log is the following:

# tail LOG.033010
...
**INFO** Time: 19:36:15 Operations: STOP DATABASE SYSTEM initiated.
**INFO** Time: 19:36:20 Operations: STOP DATABASE SYSTEM completed successfully.
**INFO** Time: 19:46:38 Operations: START DATABASE SYSTEM initiated.
**INFO** Time: 19:46:50 Operations: START DATABASE SYSTEM completed successfully.

BUT

# ls -l log
-rw-rw---- 1 xxx xxx 77431 Mar 30 18:38 LOG.033010


So, how is it possible that some process writes to the file but file time modification still remains untouched?

Thank you

Last edited by laki47; 03-30-2010 at 01:06 PM.
 
Old 03-30-2010, 01:15 PM   #2
hockeyman_102
Member
 
Registered: Apr 2006
Location: Washington
Distribution: Suse, CentOS, Ubuntu
Posts: 124

Rep: Reputation: 15
is the time off on the machine writing to the file?
 
1 members found this post helpful.
Old 03-30-2010, 02:00 PM   #3
JonathanWilson
Member
 
Registered: Aug 2009
Location: Ilkeston, England
Distribution: ubuntu, xp, embeded
Posts: 79

Rep: Reputation: 1
I don't know how linux handles it, but two guesses are

1: The database has an internal clock adjusted so that it is a constant and doesnt change when the clocks do.

2: The amended date/time of a file is only done when the file is closed or a specific type of write is issued, so while some buffered writes (from the cache) show up in tail the OS hasnt amended the time because the file never closed or there are oustanding cache writes pending (this would be my guess otherwise the OS would be doing nothing but updating the last changed time on a quickly changing file) perhaps its an option of the FS on the disk?
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Get file modification date/time in Bash script cmfarley19 Programming 16 04-15-2015 06:25 PM
file modification time smaller than a second thllgo Linux - Server 3 03-18-2010 04:05 AM
file modification time graziano1968 Linux - Server 1 08-25-2008 09:06 AM
Retrieving file size, or its modification time _cih_ Linux - Newbie 3 12-19-2006 05:48 AM
time stamp for file modification youngstorm Linux - Newbie 2 11-01-2005 03:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration