]> git.ipfire.org Git - thirdparty/suricata.git/commit
suricatasc: add -c flag to run command 1122/head
authorEric Leblond <eric@regit.org>
Sat, 6 Sep 2014 09:46:21 +0000 (11:46 +0200)
committerEric Leblond <eric@regit.org>
Wed, 17 Sep 2014 09:43:36 +0000 (11:43 +0200)
commit7f68a255357a00355566c66fb381caceab14209b
tree705d60242c28958a141b138ce80d755154d67c92
parent1b9cc036530f2ba66ce6629c4cb86b4528f1027f
suricatasc: add -c flag to run command

Add -c flag to run command given as argument and return the raw
JSON result. For example, it is possible to run something like.
 $ suricatasc  -c "iface-stat eth0"
 {'message': {'pkts': 17838352, 'drop': 0, 'invalid-checksums': 1}, 'return': 'OK'}
scripts/suricatasc/suricatasc.in