I think that you are trying is:
Code:
MOUNTERROR=/root/backup-keeper/errorlog.txt
mount -t nfs 192.168.0.63:/mnt/FARMER-mirror/ /mnt/keeper/ > $MOUNTERROR
if [ `cat $MOUNTERROR` -eq "mount: RPC: Remote system error - No route to host" ]; then
echo FAILED
fi
There are a few problems:
It may give the error on stderr
It may fail for another reason
Solution - look at the return code and only continue if it passed - ie:
Code:
mount -t nfs 192.168.0.63:/mnt/FARMER-mirror/ /mnt/keeper/
if [ $? -eq 0 ]; then
echo Mount OK
fi