How to get a mail when the partition reaches 75% in solaris

Hi Every one,

I am new to Solaris and i want to know how to get a mail when the partition reaches certain Ex-75% percentage, and how to write shell script. I hope some one will help me.

Thanks and Regards,
Venkatesh.
##edit#by#moderator##
don't post your email address here
##edit#by#moderator##

could be something like this:

#!/usr/bin/ksh
ALARM=75
df -k | awk '!/capacity/ {print $5 $6}' | while read CAP
do
         [[ ${CAP%\%*} -ge $ALARM ]] && print "Warning: ${CAP%\%*} % of ${CAP#*%} on `uname -n` in use!" | mailx -s "warning" pressy@unix.com
done


see "man crontab" for scheduling the job....

regards PRESSY