471,328 Members | 1,937 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,328 software developers and data experts.

python safe scripting

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/
Nov 21 '07 #1
0 720

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by Marcel van den Dungen | last post: by
68 posts views Thread by Lad | last post: by
7 posts views Thread by Rune Strand | last post: by
1 post views Thread by Josiah Carlson | last post: by
30 posts views Thread by Stuart Turner | last post: by
118 posts views Thread by 63q2o4i02 | last post: by
37 posts views Thread by John Salerno | last post: by
31 posts views Thread by Fredrik Tolf | last post: by
12 posts views Thread by Tony Belding | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.