[Tutor] parsing sendmail logs

Monika Jisswel monjissvel at googlemail.com
Mon Jul 14 20:10:49 CEST 2008

lire & logethy are an option.
but if you want to go on your own I believe awk, grep, sort  are extremely
extremely  extremely (yes 3 times !) powerfulI tools, so giving them up is a
bad decision I guess either talking about thier speed or what they would
allow you to do in few lines of code.  so  what I would advice is to  write
a python program that uses them thru subprocess module, this way you have
the best of both worlds, finaly you should set up some sort of database to
hold your data & to have a real-time  view of whats going on.
so what modules you need ? :

subprocess :  running awk & grep.
csv : for loading data from the resulting files.
MySQLdb : to connect to mysql db
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080714/7dbfece1/attachment.htm>

More information about the Tutor mailing list