There is a file, let's call it "newbie.dat" on my AIX box that is periodically being access and updated. Is there a way (command, scripts, etc) that I can use to find out what program or process updates this file?
Thanks for the reply. The lsof command is not available on my AIX server. Also, it looks like the lsof command needs to be issued while the file updating process is taking place, but I will not be able to tell when the file will be updated. I was looking for a way to find out who or what process modify the file. I wonder if I should set up a cron job preiodically running a simple script that has the ps and grep commands to check if the file is being opened. That didn't sound like a good approach.
Isn't there an audting thing you can turn on in AiX and watch accesses to an individual file? Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.