Re: [Tutor] parsing sendmail logs

2008-07-17 Thread nibudh
2008/7/16 Jeff Younker <[EMAIL PROTECTED]>: > Parsers as referenced in your link are intended for heavy-duty lifting > such as parsing programming languages. > > Sendmail logs are very simple, so those parsers are vast overkill. Split > on whitespace combined with regular expressions should be u

Re: [Tutor] parsing sendmail logs

2008-07-17 Thread nibudh
2008/7/15 Martin Walsh <[EMAIL PROTECTED]>: > > Any pragmatic advice on building or working with a framework to get > > to the point where i can do analysis on my logs would be cool. > > > > > As an exercise, I think it would be a reasonable approach to write > python derivatives of the s

Re: [Tutor] parsing sendmail logs

2008-07-14 Thread nibudh
ching this angle, there are a lot of choices and "parser land" has lots of terminology that i just simply don't understand yet. I guess I'm trying to figure out what i don't know. Any pragmatic advice on building or working with a

Re: [Tutor] parsing sendmail logs

2008-07-14 Thread nibudh
code.google.com/p/loghetti/ > > Kent > thanks for the pointer. loghetti looks interesting I've downloaded the source and from a quick review i can imagine extending this to be sendmail aware. Cheers, nibudh. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] parsing sendmail logs

2008-07-14 Thread nibudh
or are there better tools that provide a richer framework to work within? I would love to extend or write further scripts to analyze the logs and pick up things like someone suddenly emailing to 500 people. but crawling before running seems like the order of the day. Cheers, nibudh. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] function declaration problems perhaps?

2007-07-25 Thread nibudh
nce i've done programming. I can see how the property of being executable (defs and imports) could be handy, but right now I'm still getting to grips with the language proper. Thanks again for the explanations and I'll keep them in mind as i experiment some more with python. n

[Tutor] function declaration problems perhaps?

2007-07-25 Thread nibudh
ver my code (all 41 lines!) and couldn't find anything, then on a hunch i moved the def statement _above_ the rest of my code and hey presto it worked. I vaguely understand why this is happening, but can someone explain it to me. If this makes no sense then tell me

Re: [Tutor] Equivalent to perl -e

2006-10-16 Thread nibudh
nd copied it into his ~/bin.It just seemed easier that way. One needs to gauge whether doing this is likely to cause more problems than it's worth... but for small scripts with a small user base this would seem to work fine. Cheers,nibudh. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor