Why not use logrotate ?
Tim Funk wrote:
Nope - you need an external script.
Here is a quick possible one in perl that might do the trick (just
wrote, never tested - may be totally wrong due to type)
===
#!perl
use strict;
my @files;
my $oldest;
readdir(DIR, "$TOMCAT_HOME/logs");
@files = grep(
Nope - you need an external script.
Here is a quick possible one in perl that might do the trick (just wrote,
never tested - may be totally wrong due to type)
===
#!perl
use strict;
my @files;
my $oldest;
readdir(DIR, "$TOMCAT_HOME/logs");
@files = grep(/^localhost_access_log/, readdir(DIR));
cl
I would like to limit the number of log files retained by "Apache Tomcat/4.1.24". For
example:
server.xml
results (windowsXP)
localhost_access_log.2003-07-08.txt
localhost_access_log.2003-07-09.txt
etc.
desired results
To limit the number of daily copies to say ... ten. Configurable log rotat