* xt_geoip_build, xt_geoip_build_maxmind: These scripts are emitting
"normal" output to stderr meaning that cronjobs basically have to sink
all output in order to avoid noise. Unfortunately, by doing that, one
also loses errors in the error case and said error might be transient.
A simple 1>/dev/null should work for the normal cron case.
* xt_geoip_build_maxmind: Fix missing $quiet check in the v4 case.
}
if (!$quiet && $. % 4096 == 0) {
- print STDERR "\r\e[2K$. entries";
+ print STDOUT "\r\e[2K$. entries";
}
}
- print STDERR "\r\e[2K$. entries total\n" unless ($quiet);
+ print STDOUT "\r\e[2K$. entries total\n" unless ($quiet);
close($fh);
$cidr = $row->[net];
$country{$cc}->{pool_v4}->add($cidr);
- if ($. % 4096 == 0) {
- print STDERR "\r\e[2K$. entries";
+ if (!$quiet && $. % 4096 == 0) {
+ print STDOUT "\r\e[2K$. entries";
}
}
- print STDERR "\r\e[2K$. entries total\n";
+ print STDOUT "\r\e[2K$. entries total\n" unless ($quiet);
close($fh);
$country{$cc}->{pool_v6}->add($cidr);
if (!$quiet && $. % 4096 == 0) {
- print STDERR "\r\e[2K$. entries";
+ print STDOUT "\r\e[2K$. entries";
}
}
- print STDERR "\r\e[2K$. entries total\n" unless ($quiet);
+ print STDOUT "\r\e[2K$. entries total\n" unless ($quiet);
close($fh);