I am watching an event from a contract in geth, using the callback function, such as:
MyEvent.watch(function(err,result),{...})
Once the event is detected, I would like to execute an external command (such as save details of the event to a file on my computer). Is there a way to do it in geth?
If not, how else can I watch contracts and trigger execution of an non-Ethereum command?