title: Call a script(PHP, Perl) when MYSQL insert occurs
body: <p>What I'm looking is to execute a script as soon as there is an INSERT on one of the MYSQL table.</p>
  
  <p>I wanted to export all the contents of the inserted row into formatted Excel file. (This will be done through external script written in PHP) </p>
  
  <p>Main issue is to call the script as soon as the insert occurs. </p>
  
  <p>First thing that occurred to me is to create a Trigger and call the script (Found that this is not best approach. Other thing occurred to me is running a crontab</p>
  
  <p>Could anyone please suggest if there is a better solution for this?</p>
  
  <p>PS: The INSERT happens through an external application and I have no control over it.</p>