On 11 Aug 2003, Vidhata Deshpande wrote:
The o/p of ping is not fed to grep for comparing patterns, rather, the script just puts up the message of 'Network is unreachable' on
It's prolly printing on stderr, you should dup stderr to stdout with something like this:
ping [options] 2>&1