--- trunk/run.pl 2007/10/31 12:01:07 935 +++ trunk/run.pl 2007/10/31 12:14:03 936 @@ -318,7 +318,8 @@ $log->debug("loading output module $module"); eval "require $module"; - + + # add database to arugemnts for output filter $output->{database} = $database; $log->debug("calling $module->new(",dump( $output ),")"); @@ -508,6 +509,16 @@ } + # setup input name for all output filters + foreach my $out ( @output_modules ) { + if ( $out->can('input') ) { + $out->input( $input_name ); + } else { + $log->warn("output filter $out doesn't support input name"); + } + } + + foreach my $pos ( 0 ... $input_db->size ) { my $row = $input_db->fetch || next;