
#
# Monthly report
# assumes that the report be made for the previous month
#

#
# Get date for today 
#

($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
$year += 1900;
if($mon == 0) {
    $year -= 1;			
    $mon = 12;
} 

$searchStartDate = "$mon/01/$year";
$searchEndDate   = "$mon/31/$year";

system("$ENV{SERVER_HOME}/bin/report -anon $searchStartDate $searchEndDate");
