[Bro] print statement redirection

John Donnelly jdonnelly at dyn.com
Thu Jan 8 06:47:51 PST 2015


That is interesting , but it doesn't really satisfy my curiosity   Does the
scripting I/O not use stderr + stdout ? I am interested in getting bro to
redirect to syslog by inheriting file descriptors on startup .


On Thu, Jan 8, 2015 at 8:39 AM, Seth Hall <seth at icir.org> wrote:

>
> > On Jan 8, 2015, at 9:26 AM, John Donnelly <jdonnelly at dyn.com> wrote:
> >
> >   I am trying to locate how the "print"  and "print fmt"  statements
> work in bro scripts ; where are they implemented in source ?  Specifically
> I am trying to determine if they always use stdout and stderr  as
> inherited  by src/main.cc
>
> Is this sort of what you’re looking for?
>
> global my_file = open(“test.txt”);
> event bro_init()
>         {
>         print my_file, “woo!”;
>         }
>
>   .Seth
>
> --
> Seth Hall
> International Computer Science Institute
> (Bro) because everyone has a network
> http://www.bro.org/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20150108/a59e92b0/attachment.html 


More information about the Bro mailing list