[Bro] Getting the Output From system()

Chris Crawford christopher.p.crawford at gmail.com
Tue Dec 11 13:26:50 PST 2012


Say I wanted a bro script to call out to an external program, and I wanted
to get the output from the external program into my bro script.

This thread shows that I can call an external program with system():
http://mailman.icsi.berkeley.edu/pipermail/bro/2004-August/001555.html

Based on the old bro wiki, it looks like the output from that command gets
redirected to stderr:
http://www-old.bro-ids.org/wiki/index.php/Reference_Manual:_Predefined_Variables_and_Functions#system_.28s:_string.29:_int

Is there anything like system() that returns the output of an external
command?

-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20121211/97322dc0/attachment.html 


More information about the Bro mailing list