1. 安裝DBI套件
wget http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.605.tar.gz
tar -xvf DBI-1.605.tar.gz
sclin0323 發表在 痞客邦 留言(0) 人氣(78)
說明:
程式目的:根據FG的traffic log 分析出每個IP的流量..
=============================
#!/usr/bin/perl
sclin0323 發表在 痞客邦 留言(0) 人氣(217)
#!/usr/bin/perl
use IO::File;
my $file = shift;
my $ft = IO::File->new($file);
my $line = <$ft>;
sclin0323 發表在 痞客邦 留言(0) 人氣(379)
#!/usr/bin/perl
use IO::File;
use IO::Socket;
my $server = shift;
my $fh = IO::Socket::INET->new($server);
my $line = <$fh>;
sclin0323 發表在 痞客邦 留言(0) 人氣(218)
#!/usr/bin/perl
use IO::File;
my $file = shift;
my $ft = IO::File->new($file);
my $line = <$ft>;
sclin0323 發表在 痞客邦 留言(0) 人氣(677)
sclin0323 發表在 痞客邦 留言(0) 人氣(171)