I added a scene that is executed each end of day to keep my own log history for at least one month…(all my logs are tagged starting with “Ray:”)
Here is the lua script
--------------------------------------------------------
-- Remove the log file once a month
--------------------------------------------------------
local currentDay = os.date("%d")
if tonumber(currentDay) == 1 then
os.execute("rm /etc/cmh-ludl/00-LuaRay.log")
os.execute("sleep 1")
end
os.execute("grep Ray: /tmp/log/cmh/LuaUPnP.log >> /etc/cmh-ludl/00-LuaRay.log")
However, the file is displayed in the “Luup Files” web page, but nothing appear when I click on the corresponding “view” option. The content is OK because I can see it with an SSH session with the “cat” function. How can I correct the situation to also view it thru the web page ?