On 3/7/08, Nadeem M. Khan <[EMAIL PROTECTED]> wrote:
>
> On Fri, Mar 7, 2008 at 5:25 PM, Agnello George <[EMAIL PROTECTED]>
> wrote:
>
> >  if [ $(tail -n 10   /tmp/agnello |grep -e error | wc -l ) = 0 ] ; then
>
> You might lots of false alarms because of that. Dont grep for "error"
> in general. Grep for a more specific expression that is unique to the
> error you are looking for.
>
> [ grep "unique expression" /tmp/agnello .....



Thanks for the tip!!

-- 
> Regards
> Agnello Dsouza
> www.linux-vashi.blogspot.com
> www.bible-study-india.blogspot.com
-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers

Reply via email to