A few code critiques:
- Your code is not very help friendly because it can not be run, so I have
to deadlist debug it.
- There are various syntax errors in the code:
- for example: file is not defined when you invoke tail(file)
- You are overshadowing a built-in type 'file' by that name,
I am trying to fabricate a logwatch-type script in Python and I'm having
some trouble.What happens with the following code is that it prints to the
screen but the if condition on line 22 never gets executed.
http://pastie.org/549975
Any suggestions are appreciated.
--
http://mail.python.org/mail