5 Einträge, 1 Seite |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/usr/bin/perl use strict; use warnings; use CGI; use CGI::Carp qw(fatalsToBrowser); my $cgi = CGI->new(); print $cgi->header( 'text/plain' ); my $error_log = '/path/to/error_log'; open my $fh, '<', $error_log or die $!; while( <$fh> ){ print; } close $fh;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl
use strict;
use warnings;
use CGI;
use CGI::Carp qw(fatalsToBrowser);
my $cgi = CGI->new();
$cgi=new CGI();
print $cgi->header( 'text/plain' );
my $error_log = 'C:\Apache2\logs\error.log';
open my $fh, '<', $error_log or die $!;
while( <$fh> ){
print;
}
close $fh;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/usr/bin/perl use strict; use warnings; use CGI; use CGI::Carp qw(fatalsToBrowser); my $cgi = CGI->new(); $cgi=new CGI(); print $cgi->header( 'text/plain' ); my $error_log = 'C:\Apache2\logs\error.log'; my $date = localtime; $date = substr $date,0,10; open my $fh, '<', $error_log or die $!; while( <$fh> ){ print if /$date/; } close $fh;
5 Einträge, 1 Seite |