[SunHELP] Getting PIDs

Nicholas Dronen sunhelp at sunhelp.org
Wed Nov 14 11:50:08 CST 2001


Ben, 

Since I seem to recall that you had problems with the java
forking and execing the VM (or some such thing), and since
you're now running two of them, perhaps you can do something
like the following to capture the right process ids:

/path/to/java &
javapid1=$!
/path/to/java &
javapid2=$!

Then use pgrep or some combination of ps and a filter
to find processes with ppids of javapid1 and javapid2.

Hope this helps (or at least isn't too off the mark).

Regards,

Nicholas



More information about the SunHELP mailing list