#!/usr/bin/perl $global_config = "/etc/httpd/conf/httpd.conf"; $analog = "/usr/bin/analog"; $rmagic = "/usr/local/bin/rmagic-2.10/rmagic.pl"; $rmagicconf = "/usr/local/bin/rmagic-2.10/rmagic.conf"; $find = "/usr/bin/find"; $perl = "/usr/bin/perl"; $day=`/bin/date '+%e'`; chop($day); $yr=`/bin/date '+%y'`; chop($yr); $mo=`/bin/date '+%m'`; chop($mo); $rotate = 0; # Parse httpd.conf to get the list of virtual domains $indomain = 0; $count = 0; open (HTTPDCONF, "<$global_config") || die "Could not open global config file $global_config"; while () { if (/^