Operating System - HP-UX
1834772 Members
2666 Online
110070 Solutions
New Discussion

Re: pst_cmd field in pst_status structure

 
Chiappa Andrea
New Member

pst_cmd field in pst_status structure

I'm developing an application that use pst_cmd in pst_status structure to recognize running process.
This field len is limited to PST_CLEN = 64 byte, that under some circumstance may be not enough. I see that "ps -efx" command is able to retrieve long command line.
Anyone know which UX-API is available to retrieve info like "ps -efx" do ?

TIA

Chiappa Andrea
2 REPLIES 2
Mike Stroyan
Honored Contributor

Re: pst_cmd field in pst_status structure

Tusc says it is pstat_getcommandline. You can find that documented in 11i v2 in-
http://www.docs.hp.com./cgi-bin/onlinedocs.py?mpn=B2355-60103&service=hpux&path=00/12/1218

It doesn't seem to have been added to libc or pstat.h for 11.00 or 11.11 by the ps patches that added the ps -x option.
Chiappa Andrea
New Member

Re: pst_cmd field in pst_status structure

Many thanks Mike for indicate me an english version of pstat_getcommandline doc.

I did use tusc, before your answer, to spy which system call ps -x use and found pstat_getcommandline doc only in japanese (not so clear for me !).
So I open an official call to HP to have an
answer about.
The answer say that pstat_getcommandline is not documented on PA-RISC version of UX
(HP-UX 11i Version2 as reported on documentation is Itanium porting) and may
be used considering that HP may change or remove the interface at any time.

Regards

Chiappa Andrea