[Bro] - Exec::run when reading a pcap
william de ping
bill.de.ping at gmail.com
Thu Oct 26 07:02:40 PDT 2017
I'm having troubles running a simple script on bro 2.5 reading a pcap file:
print "Hello, World!";
local t="echo 123 ; echo 456";
when (local res = Exec::run(cmd))
print "start !";
print "finish !";
the exec commands runs successfully on try.bro.org, but prints nothing in
the "when" bracket when running on local bro (v2.5).
Is there a simple way of running a command with arguments and getting its
return value right away ?
system("ls"); works great but by design I can't get its results.
any thoughts ?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Bro