On Fri, 10 Dec 1999, Morris Maynard wrote:

> 
> Here are the first several lines from /var/log/diald.log.1:
> Wed Dec  1 05:56:26 1999 EST: Calling site my.isp.ip.addr.
> Wed Dec  1 05:56:34 1999 EST: Connected to site my.isp.ip.addr.
> Wed Dec  1 05:57:36 1999 EST: Disconnected. Call duration 62 seconds.
> IP transmitted 508 bytes and received 3752 bytes.
> Wed Dec  1 07:16:58 1999 EST: Calling site my.isp.ip.addr.
> Wed Dec  1 07:17:06 1999 EST: Connected to site my.isp.ip.addr.
> Wed Dec  1 07:25:16 1999 EST: Disconnected. Call duration 490 seconds.
> IP transmitted 79066 bytes and received 320469 bytes.
> (I stubbbed out the real isp ip address)
> Any ideas?

aha..

Try this:

        change
$timestamp =~ /^(\S+) $month (\d+) (\d+):\d+:\d+ \d+/ || next;
        to
$timestamp =~ /^(\S+) $month +(\d+) (\d+):\d+:\d+ \d+/ || next;
                             ^
                            ^^^

> > The tests in lines 35 and 36 fail:
> >
> >       $timestamp =~ /^(\S+) $month (\d+) (\d+):\d+:\d+ \d+/ || next;
> >       ( $dayOfWeek = $daysOfWeek{$1} ) > 0 || next;
> >

-- 
David Taylor
E-Mail: [EMAIL PROTECTED]   [Remove .spam]
ICQ:    268004
PGP:    [EMAIL PROTECTED]           [autoresponder]

PGP signature

Reply via email to