In a service file I can use:
    StandardOutput=append:/var/log/root/aptCacheUsage.log

but I want to use something like:
    StandardOutput=append:/var/log/root/aptCacheUsage_$(date +%%Y-%%m).log

Did does not work, because this puts it in:
    /var/log/root/aptCacheUsage_$(date +%Y-%m).log

Is there a way I can put it in:
    /var/log/root/aptCacheUsage_2023-08.log

while it would automatically next month go into:
   /var/log/root/aptCacheUsage_2023-09.log

I could of-course put it into:
    /var/log/root/aptCacheUsage.log

and at the beginning of the month move it if it exists with a timed
service, but I really would not like that kind of solution.

-- 
Cecil Westerhof

Reply via email to