in reply to Automating File Rotation

On linux, try the logrotate package.