-----Original Message-----
From: Rajeev R. K.
Here you go.....
mount | grep -q home
HOMESTATUS=$?
mount | grep -q backup
BACKUPSTATUS=$?
if [ $HOMESTATUS -eq 0 -a $BACKUPSTATUS -eq 0 ]; then
echo "You got both man, do your thing..."
exit 0;
else
echo "Error -- either home or backup missing -- Or is it BOTH !%$!!@#%!"
exit 1;
fi
Regards
R. K. Rajeev
Thanks Rajeev and Binand for your tips. I noticed a '-a' option in the if statement so will this below work?
If [grep -q "/home" mtab -a grep -q "/backup" mtab ] then.........
Regards,
Rony.