grep question: how determine if the process is runing

Liam O'Toole liam.p.otoole at gmail.com
Wed Mar 3 13:58:12 UTC 2010


On 2010-03-03, Donatas <fetdonatas at gmail.com> wrote:
>
> the easiest way to do so is using: ps aux | grep process_name
> but the problem is that ubuntu 9.10 desktop shows me two processes:
> 1 is the one i need, and the 2nd is the grep process was used when i was
> looking forward to find out my process state.
>

Try pgrep, from the procps package.

-- 
Liam O'Toole
Birmingham, United Kingdom






More information about the ubuntu-users mailing list