These both look like great wiki fodder for the hints and tips section! Could you add them for us?
Thanks! > Answerd my own question: > Eric , I modified your scrip, to give the " domain " total size, Then I > can use your original script on an individual domain, to find the culprit > with the huge mail box: > > Modified script: > #!/bin/bash > > # > > # Domain disk use -- Written by Eric C. Broch > > # > > #domain=yourdomain.com > > directory=/home/vpopmail/domains/ > > directories=/home/vpopmail/domains/* > > if [ "$1" != "" ] > > then > > if [ -d $directory/$1 ] > > then > > du -sh $directory/$1 > > else > > echo "No such user: $1" > > fi > > exit 0 > > fi > > for file in $directories > > do > > if [ -d $file ] > > then > > echo "" > > du -sh $file > > fi > > done > > du -sh $directory > > exit 0 > > Thanks again > > madmac > > > > >
