Quota report

Wil Cooley wcooley at nakedape.cc
Fri Sep 12 15:07:19 EDT 2003


Here's a quick script I wrote to generate a report of mailboxes over a
certain threshold:

#!/bin/sh
 
qfull=80
printf "*** Users with mailboxes over %d%% full ***\n" ${qfull}
 
su cyrus -c /usr/cyrus/bin/quota  \
        | awk "/Used/ {print \$0};
                {
                        if (\$2 >${qfull}) {print \$0}
                }" \
        | sort -n -k 2
  
printf "*******************************************\n"

It's not terribly sophisticated, but it's useful for a cron report.

Wil
-- 
Wil Cooley                                 wcooley at nakedape.cc
Naked Ape Consulting                        http://nakedape.cc
* * * * * *  Linux Services for Small Businesses  * * * * * *
*       Easy, reliable solutions for small businesses       *
*    Naked Ape Business Server http://nakedape.cc/r/sms     *
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.andrew.cmu.edu/mailman/private/info-cyrus/attachments/20030912/45beb3ce/attachment.bin


More information about the Info-cyrus mailing list