in reply to File::Tail Timeout?

I think you should log rotate outside your script.

In linux there is an program called logrotate which do the trick, I don't know how to do in windows. A fast search in google didn't find any interesting replacement tool,

Regards,