<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>We use this in a script. YMMV:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>touch /tmp/mail.txt<BR>USEPERCENT=`df / | egrep / |
gawk '{print $5}' | sed s/%//`<BR>echo "${USEPERCENT}"<BR>if [ ${USEPERCENT}
> 75 ]<BR>then<BR>mail <A
href="mailto:you@yourdomain.com">you@yourdomain.com</A> -s "Warning, / is at
${USEPERCENT}" < /tmp/mail.txt<BR>rm /tmp/mail.txt<BR>fi<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Rob</DIV></FONT>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=genti_tek4@hotmail.com href="mailto:genti_tek4@hotmail.com">Genti A.
Hila</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=fedora-list@redhat.com
href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, January 23, 2004 12:32
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> email notification when HDD
fills up</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Hi guys,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Another question now. If the hard drive fills up,
is there any way that when you have only a certain amount of space free, to
make the system send to you a notification email ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Genti</FONT></DIV></BLOCKQUOTE></BODY></HTML>