Re: ps et grep

Kezdőlap

Válasz az üzenetre
Szerző: Pierre Carrier
Dátum:  
Címzett: Edgar Bonet
CC: ML Guilde
Tárgy: 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