Re: Unix file timestamp issue ..



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.

.



Relevant Pages

  • Re: Timestamp Expect
    ... When prompted for a filename to use for the backup. ... > keep the default filename but append a timestamp to the file with the ... > The the script will finish the backup and send a line to a logfile ...
    (comp.lang.tcl)
  • Windows Scripting - Timestamp, files, need help. :)
    ... I need to write a script in vbscript (I want to use ... Gets the Highest (most recent timestamp) and compares it to the current ... and formatting it YYYYMMDDHHMM ... formatting each item in the array into the format YYYYMMDDHHMM ...
    (microsoft.public.scripting.vbscript)
  • Re: Maintaining data integrity with multiple users
    ... The way I work this problem is by using a timestamp field in the DB showing ... The first field is a record lock timestamp and the ... point the script will verify the record lock timestamp. ... to see if it is stale by comparing it to the current system time. ...
    (comp.lang.php)
  • Re: How to resolve timestamp?
    ... What I want to achieve is to resolve a timestamp from its pathetic format (I ... This is why I am interested in some kind of script or algorithm which can ... mind you have to add the Leap Days in Leap Years. ...
    (microsoft.public.windows.server.dns)
  • Re: Need help for comparing file types from test and prodcution database
    ... > production database but I need to differentiate them with the timestamp ... > 5)Shell script will validate all parameters and then copy all ... > 6)files in txt file from source to destination ...
    (comp.unix.shell)