Operating System - HP-UX
1826308 Members
3956 Online
109692 Solutions
New Discussion

[Q] How to use "ps -g" option ?

 
SOLVED
Go to solution
Tony, Lim
Frequent Advisor

[Q] How to use "ps -g" option ?

All..

I would like to monitor some process which is running by some specific group, not user.

In the man page of "ps", there is -G/g option to monitor in this case, I guess.

Is it right ? If so, how to use "-g" option in "ps" command ?

Detail example would be more helpful.

Thanks in advance.
1 REPLY 1
Hemmetter
Esteemed Contributor
Solution

Re: [Q] How to use "ps -g" option ?

Hi Tony

from ps(1)

-g grplist Select processes whose process group leaders are given in grplist.

-G gidlist (XPG4 Only.) Select processes whose real group ID numbers or group names are given in gidlist.

So for g/G parameter prefix UNIX95= is needed:

# UNIX95= ps -fG dba,users



rgds
HGH