Re: ps et grep

Etusivu

Vastaa
Lähettäjä: Pierre Carrier
Päiväys:  
Vastaanottaja: Edgar Bonet
Kopio: ML Guilde
Aihe: Re: ps et grep
2010/9/12 Edgar Bonet <guilde@???>:
> Une autre solution avec ps :
>
>    ps u -C process1,proccess2


Bien joué.

Malheureusement sous *BSD/Darwin :
     -C      Change the way the CPU percentage is calculated by using a
             ``raw'' CPU calculation that ignores ``resident'' time (this nor-
             mally has no effect).


Ceci dit pgrep n'est pas POSIX (mais dispo à peu près partout pour moi).


--
Pierre Carrier