[Bro] using broccoli to send events to bro

Mike Sconzo sconzo at visiblerisk.com
Tue Sep 24 08:12:49 PDT 2013

Thanks that's good to know. I changed it to

while bc.processInput():

and it still seems to exit immediately.

Any additional thoughts? I'm pretty lost on this one. I'm using 2.1
with the broccoli.py included with it.

Thanks again.

On Tue, Sep 24, 2013 at 9:44 AM, Siwek, Jonathan Luke
<jsiwek at illinois.edu> wrote:
> On Sep 23, 2013, at 8:20 PM, Mike Sconzo <sconzo at visiblerisk.com> wrote:
>> #! /usr/bin/python
>> from broccoli import *
>> bc = Connection("")
>> bc.send("test1", "aaaaaaaaaaaaaaaa")
>> bc.processInput();
>> print "done"
> processInput() doesn't guarantee that any events are actually processed.  It returns True if the send-queue is non-empty so calling it in a loop to make sure the event is sent is probably what you want:
>     while bc.processInput():
>         pass # or sleep or do other stuff
> - Jon

cat ~/.bash_history > documentation.txt

More information about the Bro mailing list