I want to share a discovery that has helped me a lot. This is the plugin for MySQL UDF which can run bash scripts and commands from MySQL. In my case it was very interesting