Operating System - HP-UX
1834018 Members
2784 Online
110063 Solutions
New Discussion

How to determine which process owns or opens which configuration file

 
Kenneth_18
Frequent Advisor

How to determine which process owns or opens which configuration file

In a certain application, the whole application is composed of many differrent process opening and reading differrent configuration files. How can I determine from the HP-UX OS which processes open or read a certain config file. The config file is not actually opened but just read once during the process start-up. Is this possible with fuser command?

Thanks in advacne
4 REPLIES 4
Sanjay Kumar Suri
Honored Contributor

Re: How to determine which process owns or opens which configuration file

I think reading the code/script. For example cron process reads /etc/rc.config.d/cron which is defined in /sbin/init.d/cron script.

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Steven E. Protter
Exalted Contributor

Re: How to determine which process owns or opens which configuration file

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.70/

Might help you track stuff.

Or tusc

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-7.5/


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Kenneth_18
Frequent Advisor

Re: How to determine which process owns or opens which configuration file

10.58.18.46
Kenneth_18
Frequent Advisor

Re: How to determine which process owns or opens which configuration file

Oops, wrong cut and paste.

Thanks for the suggestion STeven, will check it out.