![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| File timestamp | stevefox | UNIX for Dummies Questions & Answers | 4 | 12-24-2007 10:14 PM |
| override the system date-timestamp on the Unix servers | DavidH | UNIX for Dummies Questions & Answers | 5 | 09-27-2007 07:05 AM |
| Pls help : file stamp issue on HP UX Servers | siddaonline | UNIX for Dummies Questions & Answers | 2 | 07-04-2007 08:14 AM |
| timestamp of file | krisdhar | UNIX for Dummies Questions & Answers | 4 | 10-28-2003 07:31 AM |
| retrieve timestamp associated with a file | 2nilotpal | UNIX for Dummies Questions & Answers | 2 | 08-08-2002 03:23 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
File timestamp issue on HP servers
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. Note : the unknown process is not playing with the content of the file.. Important finding : This is happening with other files on different servers... Any help in this reg is highly appreciated ... Thanks in advance Thanks Sridhar |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Quote:
Quote:
Do some investigation on your own. We can't suggest much from the information you have provided. |
|
#3
|
|||
|
|||
|
we monitored and observed that the filestamp is changing at different times
in the day but always changing to the same old timestamp (Oct 25 2006 ) we used ps-ef, fuser options but of no avail... fuser is not returning any processes running at that point of time when the file timestamp changes... please see the script i used cd /prod/risop/prod/bsld/data monitor_log=/prod/monitoring_panda_yesterday_file.log agedfile=$(find . -name "YESTERDAYS_ALLROWS.TXT" -mtime +2) echo $agedfile>> ${monitor_log} 2>&1 while [[ $agedfile = "" ]] do agedfile=$(find . -name "YESTERDAYS_ALLROWS.TXT" -mtime +2) v_date=$(date +%H%M) done /usr/sbin/fuser -u YESTERDAYS_ALLROWS.TXT>> ${monitor_log} 2>&1 echo date>> ${monitor_log} 2>&1 echo>> ${monitor_log} 2>&1 echo $agedfile>> ${monitor_log} 2>&1 echo>> ${monitor_log} 2>&1 ps -ef>> ${monitor_log} 2>&1 echo>> ${monitor_log} 2>&1 echo>> ${monitor_log} 2>&1 ls -l YESTERDAYS_ALLROWS.TXT>> ${monitor_log} 2>&1 exit 0 |
|
#4
|
||||
|
||||
|
I would suggest that you first search for all the files which mentions directory /prod/risop/prod/bsld/data !! Start the search from root directory and not the current directory.
|
|
#5
|
|||
|
|||
|
Yes I'm searching from the root.. Could you pls provide me a sample code for some xyz file...
are there any other options to monitor a file ?? |
|
#6
|
||||
|
||||
|
Quote:
Quote:
|
||||
| Google The UNIX and Linux Forums |