Operating System - HP-UX
1834394 Members
1972 Online
110066 Solutions
New Discussion

Re: HPUX process information

 
S N Raju
Advisor

HPUX process information


Hi all,

How to obtain uid value of a username in HPUX?
Also,Is there any value that pst_status structure returns for username(not uid value) when the pstat_getproc() system call is made?
Please can anyone help me on this...

Thank u all
2 REPLIES 2
Prashanth.D.S
Honored Contributor

Re: HPUX process information

Hi Raju,

#id == > this will give u the uid for all the user including the superuser.

http://docs.hp.com/en/B3782-90716/ch04s09.html

Above link should give u more details about the system call..

Best Regards,
Prashanth
Sandman!
Honored Contributor

Re: HPUX process information

Use the getpwnam() API...see getpwent(3C) for details.