You can trigger your stuff by listening for Event Posts. You can have the EMS write events either to a file that you parse, or you can have it send an HTTP Post to a local port. You could then listen to that port via netcat or socat.
Some articles that might help in that:
http://stackoverflow.com/questions/8512 … quest-data
http://unix.stackexchange.com/questions … t-requests
The EMS Events that are available, and how you configure them, are available in our docs online.
Bryan