grep question: how determine if the process is runing
Hakan Koseoglu
hakan at koseoglu.org
Wed Mar 3 14:47:46 UTC 2010
On Wed, Mar 3, 2010 at 1:33 PM, 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.
If you don't want to install pgrep as suggested in an other mail:
ps aux|grep -v grep | grep process_name
I'm sure there are better ways of doing this :)
--
Hakan (m1fcj) - http://www.hititgunesi.org
More information about the ubuntu-users
mailing list