For Example:
-- Sol (www.polish-frags.pl)
logname = "serverlog.log"
data = "12:00:00" - rm log every day at 12:00
function et_RunFrame( levelTime )
if string.find(os.date(), data) ~= nil then
if et.HOSTARCH == "UNIX" then
os.execute(string.format("rm %s/%s/%s",tostring(et.trap_Cvar_Get("fs_homepath")),tostring(et.trap_Cvar_Get("fs_game")),logname))
elseif et.HOSTARCH == "WIN32" then
os.execute(string.format("DEL %s/%s/%s",tostring(et.trap_Cvar_Get("fs_homepath")),tostring(et.trap_Cvar_Get("fs_game")),logname))
end
end
end