3 # Generate a report on schedule
6 require './webalizer-lib.pl';
7 $lconf = &get_log_config($ARGV[0]);
8 $lconf || die "Logfile $ARGV[0] config file does not exist";
10 open(NULL, ">/dev/null");
11 $ok = &generate_report($ARGV[0], NULL, 0);
14 if ($ok && $lconf->{'clear'}) {
15 # Truncate or delete the files for this report
16 foreach $f (&all_log_files($ARGV[0])) {
19 # Just truncate the main log file
23 # Delete any extra compressed files