create &DIR&/test.log &DIR&/anothertest.log { monthly rotate 3 start 6 mail user@invalid. maillast sharedscripts postrotate touch scriptout echo $(cat scriptout) foo > foo mv foo scriptout endscript }