--- Devdas Bhagat <[EMAIL PROTECTED]> wrote:
> > we use:
> > proc_num=`ps -ef | grep master | wc -l`
> And you might also see the ps process running in the
> ps output.

sorry the correct command we use is:
ps -ef | grep master | grep -v grep | wc -l

So it omits the grep itself and count comes correct.

Sorry for a mis-typo :(

--Vaibhav


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to