On Dec 11, 2012, at 4:26 PM, Chris Crawford <christopher.p.crawford(a)gmail.com>
Is there anything like system() that returns the
output of an external command?
I hate that I'm even pointing this out on the mailing list, but here it goes…
You can do it with the input framework and system command together. I have a minimal
example that I wrote for the SecurityOnion guys for their Bro installation. This script
runs the hostname command and collects the output.
Have fun. :)
International Computer Science Institute
(Bro) because everyone has a network