[Bro] print statement redirection

Seth Hall seth at icir.org
Thu Jan 8 06:39:09 PST 2015


> 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/




More information about the Bro mailing list