Re: Unix file timestamp issue ..
- From: Moody <nasir.mahmood@xxxxxxxxx>
- Date: Fri, 15 Jun 2007 12:55:56 -0000
On Jun 14, 11:05 pm, Bill Marcum <marcumb...@xxxxxxxxxxxxx> wrote:
On Thu, 14 Jun 2007 08:52:38 -0700, siddaonl...@xxxxxxxxx
<siddaonl...@xxxxxxxxx> wrote:
--------------------------------------------------------------------------------
Hi All ,
I have a file which gets updated by a korn job daily . The file gets
the latest timestamp on everyrun.
But of late i have observed that the file timestamp gets modified to a
older date ( Oct 25 2006 ) at some point in time of the day. This
change has nothing to do with the job which updates this file.
There is some unknown process which is acting on this and changing the
timestamp ( to Oct25 2006 ) everyday. Once the korn job runs it puts
the right time stamp. The unexpected change is happening at some other
time by some other process.
Could anyone help me find a way to identify the unknown process in
question which is modifying the timestamp of this file.
ls -lc filename should show when the timestamp was changed. Also, you
could copy the file to another directory and then chmod -w (remove write
permission from) the directory.
Note : the unknown process is not playing with the content of the
file..
Thanks
Sridhar
--
A commune is where people join together to share their lack of wealth.
-- R. Stallman
Do you have ntpdate implemented? or can you check what accesses the
file by creating a customized shell script through which you may use
something like below:
like if the Change time event happens at some fixed time, you may
start/schedule the script sometime before that and ask the script to
look for process
ps -ef|grep filename
running all the time ( a little but time/CPU consuming option )
The other option would be like that you move the resulting file to
someother location, if only that particlar file's time is being
changed:
third option may be you can monitor the processes running at the time
of modification, ( if you are using Solaris 9 or above you may use
'pargs' command to verify the currently running process'es arguemnt )
more than this you may need to look deeply what makes the time being
changed as you have a native understaning of the enviroment.
Regards,
Moody
Motorola PK.
.
- Follow-Ups:
- Re: Unix file timestamp issue ..
- From: John DuBois
- Re: Unix file timestamp issue ..
- References:
- Unix file timestamp issue ..
- From: siddaonline
- Re: Unix file timestamp issue ..
- From: Bill Marcum
- Unix file timestamp issue ..
- Prev by Date: Re: Sort file in reverse numerical order using UNIX Cygwin
- Next by Date: Re: accident!
- Previous by thread: Re: Unix file timestamp issue ..
- Next by thread: Re: Unix file timestamp issue ..
- Index(es):
Relevant Pages
|