how to call a external command


               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?

I believe that its fairly easy to do:

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

kong wrote: