/usr/share/cricket/util/newsstats is in cricket 1.0.5-19.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #!/usr/bin/perl
##
# Get simple stats from INND with cleanfeed
# expects output crom "ctlinnd mode" on STDIN
#
# Author: Jost Krieger <Jost.Krieger@ruhr-uni-bochum.de>
# Revision: $Revision: 1.1.1.1 $
##
use strict;
my ($passed, $reject, $refuse);
while (<>)
{
# print STDERR $_;
if (/Perl filter stats/) {
/Pass: (\d+)/ and $passed=$1;
/Reject: (\d+)/ and $reject=$1;
/Refuse: (\d+)/ and $refuse=$1;
}
}
print "$passed\n$reject\n$refuse\n";
|