in reply to log_rotate.pl

Why are you copying at all? Why not just rename?

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.