#!/bin/bash
# Definitionen
homepath=$1
datum=$(date)
while (true)
do
for path in $(ls -aIF -A $homepath | sort)
do
duget=$(du -Hs "$homepath$path")
dusage="$dusage $duget\x0a"
done
echo -e $dusage | mail -s "Quota fuer $1 vom $datum" $2
sleep 10
dusage=""
done
exit (0)