HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Process id's of programs which opens a file.
Operating System - HP-UX
1832085
Members
3039
Online
110037
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
11-09-2006 08:00 PM
11-09-2006 08:00 PM
Process id's of programs which opens a file.
Hello,
I would like to know whether there is any command or method to find out which all processes are opening a recovery file.
All my programs access a recovery file while posting transactions , i would like to know the process id of the process which has opened the file and has written details into it.
Can any one help me out in this
I would like to know whether there is any command or method to find out which all processes are opening a recovery file.
All my programs access a recovery file while posting transactions , i would like to know the process id of the process which has opened the file and has written details into it.
Can any one help me out in this
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2006 08:03 PM
11-09-2006 08:03 PM
Re: Process id's of programs which opens a file.
Hi, try with fuser
fuser -u /path/file
Yang
fuser -u /path/file
Yang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2006 08:32 PM
11-09-2006 08:32 PM
Re: Process id's of programs which opens a file.
Hi,
you can download lsof from:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.77/
# lsof /home/godronpw/usage.c
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
f.sh 29050 godronpw 0u REG 64,0x5 367 75 /home/godronpw/usage.c
sleep 29062 godronpw 0u REG 64,0x5 367 75 /home/godronpw/usage.c
lsof can also be used for port usage etc.
you can download lsof from:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.77/
# lsof /home/godronpw/usage.c
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
f.sh 29050 godronpw 0u REG 64,0x5 367 75 /home/godronpw/usage.c
sleep 29062 godronpw 0u REG 64,0x5 367 75 /home/godronpw/usage.c
lsof can also be used for port usage etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2006 09:58 PM
11-09-2006 09:58 PM
Re: Process id's of programs which opens a file.
Hi ,
lsof is better.
Try it
Thanks,
Siva
lsof is better.
Try it
Thanks,
Siva
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP