Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    SyslogScan::Summary 0.32

    Download button

    No screenshots available
    Downloads: 336  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Rolf Harold Nelson | More programs
    Perl Artistic License / FREE
    August 16th, 2007, 08:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    SyslogScan::Summary description

    SyslogScan::Summary encapsulates a tally of how many bytes people have sent and received through sendmail.

    SyslogScan::Summary encapsulates a tally of how many bytes people have sent and received through sendmail.

    SYNOPSIS

    Use SyslogScan::Summary;
    Use SyslogScan::DeliveryIterator;

    my $iter = new SyslogScan::DeliveryIterator(syslogList =>
    [/var/log/syslog]);
    my $summary;
    if (defined $DOING_IT_THE_HARD_WAY_FOR_NO_PARTICULAR_REASON)
    {
    # feed a series of SyslogScan::Delivery objects
    $summary = new SyslogScan::Summary();
    my $delivery;
    while ($delivery = $iter -> next())
    {
    $summary -> registerDelivery($delivery);

    # You would instead use:
    # $summary -> registerDelivery($delivery,'foo.com.$')
    # if you only cared to get statistics relating to how
    # much mail users at foo.com sent or received.
    }
    }
    else
    {
    # slurps up all deliveries in the iterator,
    # producing the same effect as the block above
    $summary = new SyslogScan::Summary($iter);
    }

    print $summary -> dump();

    use SyslogScan::Usage;
    my $usage = $$summary{'john_doe@foo.com'};
    if (defined $usage)
    {
    print "Here is the usage of John Doe at foo.com:n";
    print $usage -> dump();
    }
    else
    {
    print "John Doe has neither sent nor received messages lately.n";
    }

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Syslog summary | scan summary | Perl module | Syslog | scan | summary

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM