![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| File timestamp | stevefox | UNIX for Dummies Questions & Answers | 4 | 12-25-2007 01:14 AM |
| override the system date-timestamp on the Unix servers | DavidH | UNIX for Dummies Questions & Answers | 5 | 09-27-2007 10:05 AM |
| Pls help : file stamp issue on HP UX Servers | siddaonline | UNIX for Dummies Questions & Answers | 2 | 07-04-2007 11:14 AM |
| timestamp of file | krisdhar | UNIX for Dummies Questions & Answers | 4 | 10-28-2003 10:31 AM |
| retrieve timestamp associated with a file | 2nilotpal | UNIX for Dummies Questions & Answers | 2 | 08-08-2002 06:23 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|
|
||||
|
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 |
|
||||
|
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 |
![]() |
| Bookmarks |
| Tags |
| mtime |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|