LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Help with gathering Exim mail stats.

[ILUG] Help with gathering Exim mail stats.

Dave Rynne dave at dspsrv.com
Tue Nov 20 14:57:38 GMT 2001


> Hi.
> 
> My wonderful manager just came down to me and said that I have until 2pm to
> write a script that will look through a weeks mail logs and tell me that
> total size of all mails sent through our mail servers.

2pm in which timezone ?

> 
> Does anyone else using exim have this done already and is feeling
> particularly generous ?

Try something like:
TOTAL=0; for i in `grep "<=" /var/log/exim/mainlog | awk '{print $9}' \
| sed -e 's,S=,,'`; do TOTAL=$[$TOTAL+$i]; done; echo $TOTAL

That's really quick and dirty but it's a start ..

> 
> I'll gladly give over a heap of beers for the script :-)

Cool .. I'll mail you my address and you can have them delivered ;)

Dave

> 
> Regards,
> 
> Richard.
> 
> 
> 
> 
> -- 
> Irish Linux Users' Group: ilug at linux.ie
> http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at linux.ie
> 





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell