On 3/7/08, Nadeem M. Khan nadeem.m.khan@gmail.com wrote:
On Fri, Mar 7, 2008 at 5:25 PM, Agnello George agnello.dsouza@gmail.com 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!!