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 ?