I made the recommended change, but the log still doesn't output anything.
The tests in lines 35 and 36 fail:
$timestamp =~ /^(\S+) $month (\d+) (\d+):\d+:\d+ \d+/ || next;
( $dayOfWeek = $daysOfWeek{$1} ) > 0 || next;
The log does contain many entries for the current month. I don't understand
what line 35 is trying to find out (perl ignorance)
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of David Taylor
Sent: Wednesday, December 08, 1999 5:17 PM
To: [EMAIL PROTECTED]
Subject: Re: [Jake Colman <[EMAIL PROTECTED]>] diald log maintenance
<< File: ATT00042.dat >> On Wed, 08 Dec 1999, John Seifarth wrote:
> At 16:36 +0000 8/12/99, David Taylor wrote:
> >
> >I can't actually recall the changes, but if anyone wants them I could dig
> >out a fresh copy and diff them..
> >
>
> Yes, please, David. That monthly report looks quite impressive, and should
> even be useful looking for unwanted connections over holidays, for
example.
> Post the diffs, or if you don't have time, just email me the modified
> monthly script and I'll diff the baby myself.
>
> John
>
Wow. Its unbeleivably simple [timestamps stripped]:
diald[453]: IP transmited 380 bytes and received 0 bytes.
^^^
changed to
diald[453]: IP transmitted 380 bytes and received 0 bytes.
^^^^
So, in diald.monthly just change (line 39 or so)
} elsif( /IP transmited (\d+) bytes and received (\d+) bytes/ ) {
to
} elsif( /IP transmitt?ed (\d+) bytes and received (\d+) bytes/ ) {
which will work with both log formats..
In order to make the -p (post to newsgroup) option to work I had to
fix the headers (correct newsgroup/from) and the injnews program had
the wrong path.. But its pretty simple, and also overkill :)
Having it emailed monthly/weekly by cron is pretty neat..
--
David Taylor
E-Mail: [EMAIL PROTECTED] [Remove .spam]
ICQ: 268004
PGP: [EMAIL PROTECTED] [autoresponder]
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]