title: call external script with mySQL trigger WHITOUT sys_exec on ubuntu ARMHF
body: <p>I need to call an external script from a trigger to intercept every insert in the DB.
  This because I can't poll for that value, I'm coding for an embedded system with ARM architecture and only 250MB of RAM.
  Trigger is the right options, and the code of the trigger works well, I get:</p>
  
  <pre><code>FUNCTION mydb.sys_exec does not exist (MySQL error code: 1305, SQLState: 42000 )
  </code></pre>
  
  <p>so I tried to install this:
  <a href="https://github.com/mysqludf/lib_mysqludf_sys" rel="nofollow">https://github.com/mysqludf/lib_mysqludf_sys</a></p>
  
  <p>but it gets me:</p>
  
  <pre><code>ERROR: You need libmysqlclient development software installed 
  to be able to compile this UDF, on Debian/Ubuntu just run:
  apt-get install libmysqlclient15-dev
  </code></pre>
  
  <p>so if I type</p>
  
  <pre><code>sudo apt-get install libmysqlclient15-dev
  </code></pre>
  
  <p>I get:
      Note, selecting 'libmysqlclient-dev' instead of 'libmysqlclient15-dev'</p>
  
  <p>and of course it is not the right package because it doesn't work.
  The .so file contained in the git is compiled for intelx86.</p>
  
  <p>Anyone has an idea?
  Compiling the .c in the git it's quite impossible due the lot of missing dependencies.</p>
  
  <p>Or.. how can I execute an external script from a trigger without sys_exec?</p>
  
  <p>PS: for completeness, this is the trigger script:</p>
  
  <p>DELIMITER @@</p>
  
  <pre><code>CREATE TRIGGER command_controller
  AFTER INSERT ON myDB.foo
  FOR EACH ROW
  BEGIN
   DECLARE cmd CHAR(255);
   DECLARE result int(10);
   SET cmd='./foo ';
   SET result = sys_eval(cmd);
  END;
  @@
  DELIMITER ;
  </code></pre>