#! /bin/sh MAILADDRESS="kaball@libero.it" size=`df . | tail -1 | awk {'print $4'}` if test $size -lt 1000 then echo "SUBJECT: spazio terminato" > mestemp echo "Lo spazio su disco del server è terminato!!!!" >> mestemp echo . >> mestemp sendmail -v $MAILADDRESS < `pwd`/mestemp rm mestemp fi