New question. IN the mail code i need to attach the df command output with the subject. I tried
Mail -s "subject"
xxx@xxx.com < 'df -k /netprov'
gives output of df -k to the screen, but no e-mail. I checked with 70%, I know it is at 73%.
----------------------------------------
if [ `df -k /netprov | tail -1 | awk '{print $5'} | tr -d '%'` -gt 85 ]
then
mail code goes here...
fi
---------------------------------------