1753503 Members
4765 Online
108794 Solutions
New Discussion юеВ

/proc on HP-UX?

 
SOLVED
Go to solution
Ioana Sundius
New Member

/proc on HP-UX?

Can't seem to find any reference to the process file system format in the man pages / reference books from HP.

Does anyone know if they are implemented? They are the standard way an application can obtain information on currently running processes. Linux, Solaris, AIX all implement it -- what about HP?

If there is indeed no /proc on HP, then what is the preferred way to obtain the start time of a process currently running with a given pid?
--> long getProcessStartTime(int pid);

Thanks!

Ioana
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: /proc on HP-UX?

HP-UX does not have a /proc filesystem.

Variations of the pstat() system call will do what you want? Man 2 pstat for details.
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: /proc on HP-UX?

Hi Ioana:

There is a good white paper, with examples, on 'pstat()' here:

http://docs.hp.com/hpux/onlinedocs/os/11i/pstat_whitepaper.pdf

As noted in the paper, the 'lsof' utility utilizes this interface and is, in fact, a good source of further examples since its source code is freely available.

Regards!

...JRF...
Ioana Sundius
New Member

Re: /proc on HP-UX?

Thank you, Clay -- that seems to do the trick quite easily:-)

Ioana