[Ilugc] Process findings

  • From: lug@xxxxxxxxxxxxxxxxxx (Chandrashekar Babu)
  • Date: Fri Jul 22 13:55:01 2005

On Fri, 22 Jul 2005 11:37:14 +0530, Anthony Ashok  
<Anthony.Ashok@xxxxxxxxxxxxxxx> wrote:

Hi All,
        I want to find whether any processis running in unix server or  
not by usingthe Process name.

csb@xaero:~% pgrep opera
2380
2386
csb@xaero:~% echo $?
0
csb@xaero:~% pgrep blah-blah
csb@xaero:~% echo $?
1
csb@xaero:~%

I hope this solves your problem. pgrep comes with the procps package (the  
one that ps command is packaged with, on most linux distributions).

--
Chandrashekar Babu.
http://www.chandrashekar.info/

Other related posts: