From magnus.anderssen at orange.ch Wed Mar 7 07:14:38 2001 From: magnus.anderssen at orange.ch (Anderssen Magnus) Date: Wed, 7 Mar 2001 16:14:38 +0100 Subject: flushing files to the disk Message-ID: <130F25996DF0D411A9970002A513A71E02FDAA@VDLAEXC7> Hi, I need to flush my log files. I have experienced Bro not flushing the files when being stop (Control C). I've read in the manual that there was a flush_all() function and I tried to use it but it does not work (unrecognized variable). Does it need some special setting to work. I'm using Bro version 0.6. Thanks in advance for the futur help. Magnus Anderssen From vern at ee.lbl.gov Wed Mar 7 10:32:06 2001 From: vern at ee.lbl.gov (Vern Paxson) Date: Wed, 07 Mar 2001 10:32:06 PST Subject: flushing files to the disk In-Reply-To: Your message of Wed, 07 Mar 2001 16:14:38 PST. Message-ID: <200103071832.f27IW6i21847@daffy.ee.lbl.gov> > I need to flush my log files. I have experienced Bro not flushing > the files when being stop (Control C). I've read in the manual that there > was > a flush_all() function and I tried to use it but it does not work > (unrecognized > variable). Does it need some special setting to work. > > I'm using Bro version 0.6. flush_all() was added with Bro 0.7, available as a prerelease from ftp://ftp.ee.lbl.gov/.vp-bro-pub-0.7a48.tar.gz Note that HUP'ing Bro 0.7 will by default cause flush_all() to be invoked. Vern From magnus.anderssen at orange.ch Thu Mar 8 04:47:58 2001 From: magnus.anderssen at orange.ch (Anderssen Magnus) Date: Thu, 8 Mar 2001 13:47:58 +0100 Subject: malformed regular expression Message-ID: <130F25996DF0D411A9970002A513A71E02FDB5@VDLAEXC7> Hi, I'm getting this run-time error: rune-time error: attempt to match to a malformed regular expression. The problem is that I don't know where it occurs. (in which event, ...) Do I get this message when trying to write to a file a empty string returned by Bro? Is there a way to get more precise error message? To be able to correct my script. Thanks Magnus Anderssen From kerberos_007 at hotmail.com Thu Mar 8 09:15:32 2001 From: kerberos_007 at hotmail.com (kerberos kkk) Date: Thu, 08 Mar 2001 12:15:32 -0500 Subject: redef Message-ID: hi, Can we do a redef of a variable in side an event ? I am getting a parse error when i do this. whereas outside the event/fucntion i am able to do the redef. Thanks for all the help _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From vern at ee.lbl.gov Thu Mar 8 09:20:55 2001 From: vern at ee.lbl.gov (Vern Paxson) Date: Thu, 08 Mar 2001 09:20:55 PST Subject: malformed regular expression In-Reply-To: Your message of Thu, 08 Mar 2001 13:47:58 PST. Message-ID: <200103081720.f28HKtv25228@daffy.ee.lbl.gov> > I'm getting this run-time error: > > rune-time error: attempt to match to a malformed regular > expression. > > The problem is that I don't know where it occurs. (in which event, ...) > Do I get this message when trying to write to a file a empty string returned > by Bro? > Is there a way to get more precise error message? To be able to correct my > script. As usual, when reporting a problem like this, please include your script(s) so it can be reproduced. Vern From vern at ee.lbl.gov Thu Mar 8 09:23:16 2001 From: vern at ee.lbl.gov (Vern Paxson) Date: Thu, 08 Mar 2001 09:23:16 PST Subject: redef In-Reply-To: Your message of Thu, 08 Mar 2001 12:15:32 PST. Message-ID: <200103081723.f28HNGQ25263@daffy.ee.lbl.gov> > Can we do a redef of a variable in side an event ? > I am getting a parse error when i do this. > whereas outside the event/fucntion i am able to do the redef. redef is a global declaration. It's used to override run-time initializations, so it wouldn't make much sense as a declaration local to a procedure. Vern From kerberos_007 at hotmail.com Fri Mar 9 11:38:22 2001 From: kerberos_007 at hotmail.com (kerberos kkk) Date: Fri, 09 Mar 2001 14:38:22 -0500 Subject: redef Message-ID: Thanks. Does bro allow to change Global var from inside a function somehow ? >From: Vern Paxson >To: "kerberos kkk" >CC: bro at lbl.gov >Subject: Re: redef >Date: Thu, 08 Mar 2001 09:23:16 PST > > > Can we do a redef of a variable in side an event ? > > I am getting a parse error when i do this. > > whereas outside the event/fucntion i am able to do the redef. > >redef is a global declaration. It's used to override run-time >initializations, so it wouldn't make much sense as a declaration >local to a procedure. > > Vern _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From vern at ee.lbl.gov Fri Mar 9 11:45:36 2001 From: vern at ee.lbl.gov (Vern Paxson) Date: Fri, 09 Mar 2001 11:45:36 PST Subject: redef In-Reply-To: Your message of Fri, 09 Mar 2001 14:38:22 PST. Message-ID: <200103091945.f29Jjar29684@daffy.ee.lbl.gov> > Does bro allow to change Global var from inside a function somehow ? You certainly can assign to it (unless it's "const"). But initialization is only done outside of functions. Vern