Operating System - HP-UX
1753878 Members
7174 Online
108809 Solutions
New Discussion

/proc or equivalent in HPUX

 
youthsen
Occasional Advisor

/proc or equivalent in HPUX

Hi All,

 

In linux, we have /proc file system...It has all the details of running process...

 

For say, under /proc, we have find the subdirectories having named PID number, All details of a running process of that PID is stored under that subdirectory...

 

My questions:

 

1)Do we have /proce or equivalent in HPUX?

 

2) How to see these details in HPUX?

 

3)Where all the details of a process / PID is stored?

 

2 REPLIES 2
Dennis Handly
Acclaimed Contributor

Re: /proc or equivalent in HPUX

>1) Do we have /proc or equivalent in HPUX?

 

No.

 

2) How to see these details in HPUX?

 

You must write a program.  Or get the info from ps(1).  ps -fp PID

 

>3)Where all the details of a process / PID is stored?

 

In kernel data structure, until you call the various pstat(2) functions.

Re: /proc or equivalent in HPUX

On HP-UX 11.31 (11iv3) at least, the commands:

 

ps

pfiles

pmap

ptree

 

might help you collect some of the info you get from /proc, but other infromation is much harder to get... environ for instance, although there is an argument that says even root shouldn't be able to peek into these sorts of things for running processes...


I am an HPE Employee
Accept or Kudo