- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: pid of last process access a file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2002 10:06 PM
08-26-2002 10:06 PM
pid of last process access a file
Anyone know how can I determine the pid of the last process that access a particular file ?
Thanks
Lai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2002 10:50 PM
08-26-2002 10:50 PM
Re: pid of last process access a file
Well frankly I don't think that information is available. The "lsof" tool (search the forums for more information) can show which processes have opened which files, but showing which processes last altered a file ... I don't think so.
Can anyone else prove me wrong ?
Regards,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2002 11:00 PM
08-26-2002 11:00 PM
Re: pid of last process access a file
http://hpux.connect.org.uk/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2002 11:04 PM
08-26-2002 11:04 PM
Re: pid of last process access a file
Cheers..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2002 12:03 AM
08-27-2002 12:03 AM
Re: pid of last process access a file
It's generally not a very good idea to store PIDs, so just be a little careful with this.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 12:10 PM
08-28-2002 12:10 PM
Re: pid of last process access a file
intrusion detection products are perhaps the closest you will find to what you're looking for in anything provided by HP. None
of these really provides a bulletproof,
easy-to-use way of tracking this.
Perhaps we could be of more help if you
gave a bit more information on what
you are really trying to accomplish.
(Finding out who corrupted a file?
Spotting malicious activity?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 12:38 PM
08-28-2002 12:38 PM
Re: pid of last process access a file
:-)
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 07:28 PM
08-28-2002 07:28 PM
Re: pid of last process access a file
As others have mentioned it is not possible to do this. But, if you have an idea on what sort of process could have accessed the file,you can use perfview to list all the processes which were running at any time in the past and search that list for a match.
HTH
raj