Logrotate Question

Marcos Trazzini mstrazzini at gmail.com
Fri Jun 13 15:16:23 UTC 2008


> This is the error I get.
> error: /etc/logrotate.d/test:6 bad olddir path "/opt/`date +%Y/%m/%d`"
(...)
Humm... I'm not sure how exactly logrotate might deal with shell
escape sequences, specially if it expects sh-alike syntax (not
bash-alike). Why don't you try to change the "/opt/`date +%Y/%m/%d`"
to "/opt/$(date +%Y/%m/%d)" and see what happens?

-- 
Marcos S. Trazzini => mstrazzini at gmail.com




More information about the redhat-list mailing list