[Bro] how to call a external command

Jason Lee JRLee at lbl.gov
Fri Aug 6 09:22:20 PDT 2004

I believe that its fairly easy to do:

function foo(a: addr)
    system(fmt("%s %s", "/path/to/my/script" , a))

kong wrote:
> hello:
>                when a event happpend ,how to make its event handler to call a
> external command?For example , call a alarm program to alert
> administrator or call a external command like iptables to respond the
> attack event?
>              Is there  a function like "exec()"  in C?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3796 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20040806/79852f79/attachment.bin 

More information about the Bro mailing list