Chris Arnold put forth on 11/10/2009 6:47 PM:
> OK, I have gotten access to the mail server and have downloaded
> pflogsumm.pl. I have followed the readme and chown and chmod. Did not
> copy the man page. Run perl pflogsumm.pl and nothing happens; it just
> sits there. I untar’ed the gz file that was downloaded and that made a
> dir pflogsumm-1.1.1 and I am running pflogsumm.pl inside of that dir.
> Does it need to be moved to the mail log dir? It doesn’t seem so as the
> readme says to copy to path/to/bin folder.

Example usage:

pflogsumm.pl /var/log/mail.log
**outputs statistics for the current log file

pflogsumm.pl -d today /var/log/mail.log
**outputs statistics for today only

pflogsumm.pl -d yesterday /var/log/mail.log
**outputs statistic for yesterday only

pflogsumm.pl /var/log/mail.log /var/log/mail.log.0 /var/log/mail.log.1
**you can specify multiple logs files, but not the rotated (zipped)
files.  pflogsumm.pl doesn't call gunzip or anything fancy.  The input
files must be text only.

You should put pflogsumm.pl in /usr/sbin/.  Don't move it to the mail
log dir, that's silly.  You should also install the manual.

--
Stan

Reply via email to