ApacheLog-Parser
view release on metacpan or search on metacpan
bin/loghack view on Meta::CPAN
}
else {
record_source($opt, $file, "$outpath.sources/", $checksum);
# TODO this could stand to be more atomic
{ # record results
want_dir("$outpath.loaded");
my $tag = ($ENV{HOSTNAME} || '') . '.' . $$;
open($ch, '>', "$checkfile.$tag") or
die "cannot write '$checkfile.$tag' $!";
# TODO chmod
rename("$checkfile.$tag", $checkfile) or
die "cannot make $checkfile $!";
}
# TODO a replayable pipe would be nice
{local $SIG{CHLD}; close($fh);} # stupid macs
$fh = open_file($file);
}
$opt->{quiet} or print "$nicename -- ",
bin/loghack view on Meta::CPAN
my $lnum = ++$lc{$cdate};
# create skiplist
if($doskip->($v)) {$sw->skip($lnum);}
print $out join("\t", @$v), "\n";
}
print $ch "$linecount\n";
close($ch) or die "write '$checkfile' failed $!";
# TODO race checks/chmod
}
wait(); # XXX need this?
return(@loaded);
}
=for doc ###############################################################
Examine the */.loaded files and verify that each one has a linecount
(finished loading.)
loghack check */.loaded/*
( run in 0.300 second using v1.01-cache-2.11-cpan-496ff517765 )