1827703 Members
2966 Online
109967 Solutions
New Discussion

Help in java program

 
Manoj P.U.
Advisor

Help in java program


Hello Friends,

Wish you all a wonderful Merry Christmas & a prosperous Happy New Year 2009.

Is it possible for a Java program to fetch process list in hp-ux operating system. The same as its done in unix using `ps -ef` command.

For example we have java program with 'date' function which displays system date.

Best Regards
Manoj PU
Manoj P.U.
3 REPLIES 3
Dennis Handly
Acclaimed Contributor

Re: Help in java program

You want to parse the output of ps(1)? Or do you want to call pstat(2) directly for each process?
Manoj P.U.
Advisor

Re: Help in java program

Hi Dennis,

I want to parse the output of ps(1).

Regards
Manoj
Manoj P.U.
Dennis Handly
Acclaimed Contributor

Re: Help in java program

>I want to parse the output of ps(1).

I assume there is something like popen(3) in java and then you just read the output.