in reply to Re^3: Undefined Error
in thread Undefined Error

Hi Poj,

I see that you've changed the logic, can you tell me know how to just disable the time part, so that I can run the script to verify the main logic.

Thanks,

Replies are listed 'Best First'.
Re^5: Undefined Error
by poj (Abbot) on Jun 16, 2013 at 07:27 UTC
    OK, comment out this line ;
    ## next unless ($date eq $TODAY);
    and the if
    # add condition ## if ($minutes >= $START_MINUTE){ my $uid = $conn{$conn}; ++$users{$uid}; ## }
    poj
Re^5: Undefined Error
by johnrein55 (Novice) on Jun 16, 2013 at 19:21 UTC
    Hi Poj,

    I tried running the code by commenting the rows as suggested, however I do not get the result ( ie bad user) Here is the log, can you try from your side, you must see bad user getting printed.

    [04/Jun/2013:13:06:13 -0600] conn=13570 op=14 msgId=13 - BIND dn="uid= +xyz123,ou=People,o=xyz.com" method=128 version=3 [04/Jun/2013:15:06:13 -0600] conn=13570 op=14 msgId=15 - RESULT err=0 +tag=101 nentries=48030 etime=139 SRCH=Q [04/Jun/2013:13:06:13 -0600] conn=13572 op=14 msgId=13 - BIND dn="uid= +xyz123,ou=People,o=xyz.com" method=128 version=3 [04/Jun/2013:15:06:13 -0600] conn=13572 op=14 msgId=15 - RESULT err=0 +tag=101 nentries=48030 etime=139 SRCH=Q [04/Jun/2013:17:06:13 -0600] conn=13571 op=14 msgId=13 - BIND dn="uid= +someoneelse,ou=People,o=xyz.com" method=128 version=3 [04/Jun/2013:18:06:17 -0600] conn=13571 op=14 msgId=15 - RESULT err=0 +tag=101 nentries=48030 etime=139 SRCH=Q [04/Jun/2013:13:06:13 -0600] conn=13573 op=14 msgId=13 - BIND dn="uid= +xyz123,ou=People,o=xyz.com" method=128 version=3 [04/Jun/2013:15:06:13 -0600] conn=13573 op=14 msgId=15 - RESULT err=0 +tag=101 nentries=48030 etime=139 SRCH=Q [04/Jun/2013:13:06:13 -0600] conn=13574 op=14 msgId=13 - BIND dn="uid= +xyz123,ou=People,o=xyz.com" method=128 version=3 [04/Jun/2013:15:06:13 -0600] conn=13574 op=14 msgId=15 - RESULT err=0 +tag=101 nentries=48030 etime=139 SRCH=Q [04/Jun/2013:13:06:13 -0600] conn=13575 op=14 msgId=13 - BIND dn="uid= +someone,ou=People,o=xyz.com" method=128 version=3 [04/Jun/2013:15:06:13 -0600] conn=13575 op=14 msgId=15 - RESULT err=0 +tag=101 nentries=48030 etime=139