[BlueOnyx:02368] quota mail
David Booth
md at goulburn.net.au
Sun Sep 13 19:46:28 -05 2009
Anyone else miss the daily over quota email?
Here is a shell script for root that will do it:
#!/bin/sh
/usr/sausalito/sbin/get_quotas.pl --users --sort=usage --descending |
awk '{if ($2 > $3) print $1,$2,$3;}' | mail -s quota you at wherever.net
cron daily that - but don't run it at logwatch time or you might end up
with /etc/passwd.lock
David Booth
Goulburn Internet
More information about the Blueonyx
mailing list