Logrotate Question

Ian Lists ian-list at securitypimp.com
Fri Jun 13 16:27:22 UTC 2008


----- "Marcos Trazzini" <mstrazzini at gmail.com> wrote:

> > 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
> 
 Thanks, but it got the same error.











> -- 
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list




More information about the redhat-list mailing list