> >>>>> "Vaibhav" == Vaibhav Kante <[EMAIL PROTECTED]> writes:
> 
>     Vaibhav> [snip]
>     Vaibhav> proc_num=`ps -ef | grep master | wc -l`
> 
>     Vaibhav> Now in last 2 months it has happened twice that an alert
>     Vaibhav> was generated and when we manually checked these
>     Vaibhav> processes .. everything was alright!
> 
> proc_num=`ps -ef | grep master | grep -v grep | wc -l`
> 

how about 
proc_num=`ps -ef | grep m[a]ster | wc -l`

cheers

vivek

-- 
______________________________________________
Check out the latest SMS services @ http://www.linuxmail.org 
This allows you to send and receive SMS through your mailbox.


Powered by Outblaze


-------------------------------------------------------
This SF.net email is sponsored by OSDN's Audience Survey.
Help shape OSDN's sites and tell us what you think. Take this
five minute survey and you could win a $250 Gift Certificate.
http://www.wrgsurveys.com/2003/osdntech03.php?site=8
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to