(...) > Thanks, but it got the same error. > OK, let's try some other approach, as olddir option seems to bypass parsing some shell commands. I believe that the following example should work, and with some small modifications can turn you log rotator much more flexible: ---- CUT HERE ---- /tmp/*.log { daily postrotate BASEDIR="/opt/netlogs/live" DEST="/opt/`date +%Y/%m/%d`" /bin/mkdir -p $DEST /usr/bin/find $BASEDIR -type f -name '*.log.1' -exec mv {} $DEST/ \; endscript sharedscripts missingok } ---- CUT HERE ---- Rgds > > > > > > > > > > >> -- >> redhat-list mailing list >> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe >> https://www.redhat.com/mailman/listinfo/redhat-list > > -- > redhat-list mailing list > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > https://www.redhat.com/mailman/listinfo/redhat-list > -- Marcos S. Trazzini => mstrazzini@xxxxxxxxx -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list