Re: ps et grep

Startseite

Nachricht beantworten
Autor: Pierre Carrier
Datum:  
To: Edgar Bonet
CC: ML Guilde
Betreff: 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