Charles J. Boening wrote:

How about this?

<snip filename='/home/vpopmail/bin/overquota.sh'>
  #!/bin/sh
  for i in `/home/vpopmail/bin/vpopbull -n -V`;
     do echo `/home/vpopmail/bin/vuserinfo -Q $i` $i
  done
</snip>

Called like this
/home/vpopmail/bin/overquota.sh  | grep "100%" | mail -s "Overquota
users" <your-email-addy>






Hey, that's nice.
I added a |sort -n -r to get the list sorted by "top-offendes"
How would I grep out every single-digit percentage ?



cheers,
Rainer

--
===================================================
~     Rainer Duffner - [EMAIL PROTECTED]     ~
~           Freising - Munich - Germany           ~
~    Unix - Linux - BSD - OpenSource - Security   ~
~  http://www.ultra-secure.de/~rainer/pubkey.pgp  ~
===================================================



Reply via email to