X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=gruntmaster-opener;fp=gruntmaster-opener;h=723a77b8206d824a786bf7103c8a14cf93ac2d48;hb=a832cd596e85a2deac94a1ccc6536f0b079a1543;hp=0000000000000000000000000000000000000000;hpb=f7e9da17d2a51800b190c6475ef41a07af0d4e2f;p=gruntmaster-data.git diff --git a/gruntmaster-opener b/gruntmaster-opener new file mode 100755 index 0000000..723a77b --- /dev/null +++ b/gruntmaster-opener @@ -0,0 +1,48 @@ +#!/usr/bin/perl +use 5.014; +use warnings; + +use Gruntmaster::Data; +use Gruntmaster::Opener; + +dbinit $ENV{GRUNTMASTER_DSN} // 'dbi:Pg:'; +handle_line $_ while <>; + +__END__ + +=encoding utf-8 + +=head1 NAME + +gruntmaster-opener - Populate opens table from NCSA access logs + +=head1 SYNOPSIS + + gruntmaster-opener /var/log/apache2/access.log + varnishncsa | gruntmaster-opener + +=head1 DESCRIPTION + +gruntmaster-opener reads a NCSA access log supplied via arguments or +(if there are no arguments) stdin, finds lines that represent +successful requests to problems during contests, extracts data from +them and inserts it into the database. + +=head1 SEE ALSO + +L + +=head1 AUTHOR + +Marius Gavrilescu Emarius@ieval.roE + +=head1 COPYRIGHT AND LICENSE + +Copyright (C) 2015 by Marius Gavrilescu + +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself, either Perl version 5.18.1 or, +at your option, any later version of Perl 5 you may have available. + + +=cut