Linux – Execute local (bash|python) script with thesql SQL

bashlinuxMySQLpython

I want to create a trigger so that when a field is updated it kicks off a local bash script (or python…whatever) to kick off a workflow (emails, work requests, etc). Is it possible to execute local system scripts/executables from mysql SQL? My google searches have been unsuccessful.

Best Answer

It seems not easy to do it. I think it will be better to do it at the application level if at all possible. You can also query your table for updated rows every x minutes and then execute the script in a cron job.

Related Topic