1753657 Members
5636 Online
108798 Solutions
New Discussion юеВ

Question on ps -x

 
Padmini_2
Occasional Advisor

Question on ps -x

On HPUX 11.11, when ps -x is given, we get the command line in extended format. Does ps internally use pstat interfaces to get this?
I am using pstat_getproc call, but the command line is getting tructated to 60 chars (same as ps output withoug -x option.)

Could someone please help me with this?

Thanks
Padmini
2 REPLIES 2
Fabio Ettore
Honored Contributor

Re: Question on ps -x

Hi,

KBRC00006317 - Sample code using pstat(2)'s PSAT_GETCOMMANDLINE macro

Name of document is wronged, PSTAT_GETCOMMANDLINE is correct.

Anyway I hope that helps you.

Best regards,
Ettore
WISH? IMPROVEMENT!
Ashwani Kashyap
Honored Contributor