Re: przepelnione dyski
On Fri, Apr 05, 2002 at 10:03:18AM +0200, Mirek Grochowski wrote:
>
> Witam.
>
> Czy jest jakies milutkie narzedzie, ktore informowaloby poczta o
> przepelnionych dyskach czy trzeba samemu napisac?
>
Ja robię tak:
#!/bin/bash
MAILTO='ty@twojadomena.pl'
F=`df |egrep '(9[0-9]%|100%)'`
if [ "$F" != "" ]; then
echo -e "`df|head -1`\n$F" | mail -s "[WARNING] short on space @ `hostname`" $MAILTO
fi
--
"Can't sing. Can't dance. Can handle a sword a little."
-- Victor's resume
(Terry Pratchett, Moving Pictures)
--
To UNSUBSCRIBE, email to debian-user-polish-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: