On Thu, 17 Apr 2008, Kerry Mayes wrote:

>stuff about if error.

My recommendation is to simplify your "if" structure to test it;

if echo `ping -c 1 127.0.0.1` | grep -q "1 received"; then
        echo it-works;
else
        echo it-doesnt-work;
fi

If the simplified "if" test works then you know the problem is in the test 
command or consequent commands.

Cheers Ross Drummond



Reply via email to