python safe scripting

Vladimir Rusinov vladimir at greenmice.info
Wed Nov 21 15:21:05 EST 2007


Hello!

In one my project (it's logfile manager) I want to implement 'smart'
configuration files, e.g.

logfile("/var/log/messages")
if (size() > 10*1024*1024) and (lavg() < 5):
   execute("my_log_alerter")
   rotate(save=10, compress='bzip2')

how can I safely do this?

-- 
Vladimir Rusinov
GreenMice Solutions: IT-решения на базе Linux
http://greenmice.info/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20071121/d252dac5/attachment.html>


More information about the Python-list mailing list