in reply to Re^2: moving old files
in thread moving old files

Hello again,
I've decided to use Cronolog for Apache logging. I have cronolog creating logs with like this: %m-%Y/access_log. So it will seperate all the logs my months. What is the best way to handle the month change in my original script? I'd like at the end of them month to gzip the entire directory and dump it in the archive directory. Do I use a file/directory test to check the timestamp on it?
my $log_dir = "/etc/httpd/logs/2006"; my $archive_dir = "/etc/httpd/logs/archive";