title: Execute script on Snort alert
body: <p>I currently am experimenting with a Raspberry Pi. I am running Snort, which is packet detection software. In the case Snort raises an alert, I would want to execute a (Python) script. </p>
  
  <p>Snort is executed, on a raspberry pi as followed:</p>
  
  <pre><code>sudo snort -q -A console -i eth0 -c /etc/snort/snort.conf
  </code></pre>
  
  <p>I created a python script that, when called, controls a GPIO pin of a raspberry pi. To bring it more in context; When the raspberry pi receives a ping/ICMP packet, a red alarm light is illuminated and controlled by the same device. </p>
  
  <p>The snort rule currently works, and when an ICMP packet arrives an alert is output to console. I however have no idea how to get snort to execute the python script</p>