Logwatch and pearl script issue

  • Thread starter Thread starter twolf-om
  • Start date Start date
T

twolf-om

We are having this issue with logwatch. it is part of a cron daily called 0logwatch.pl. We keep getting the following message;
print() on unopened filehandle OUTFILE at /etc/cron.daily/0logwatch line 1293

Here is the code that surrounds the line with the bold line being line 1293.

#Printing starts here $out_mime $out_head $out_reference $out_body $out_foot
print OUTFILE $out_mime if $out_mime;
if ( $Config{'encode'} == 1 ) {
print OUTFILE encode_base64($out_head) if $out_head;
print OUTFILE encode_base64($out_reference) if $out_reference;
foreach ( 0 .. $index_par ) {
print OUTFILE encode_base64($out_body{$_}) if defined( $out_body{$_} );
$out_body{$_} = ''; #We should track this down out_body could be an array instead also -mgt
}
print OUTFILE encode_base64($out_foot) if $out_foot;
} else {
print OUTFILE $out_head if $out_head;
print OUTFILE $out_reference if $out_reference;
foreach ( 0 .. $index_par ) {
print OUTFILE ($out_body{$_}) if defined( $out_body{$_} );
$out_body{$_} = '';
}
print OUTFILE $out_foot if $out_foot;
}
#ends here

Any assistance or ideas on this would be great.

Regards

twolf.om

Continue reading...
 
Back
Top