title: how to email the output of a mysql command
body: <p>I want to email the output of a MySQL command, I wrote the following script but it doesn't work, where am I going wrong? </p>
  
  <pre><code>mysql --user=me --password=00045344534 john_e56
  SELECT table_schema,table_name,update_time
  FROM information_schema.tables
  WHERE update_time &gt; (NOW() - INTERVAL 5 MINUTE);
  INTO OUTFILE '/mysqlchanges.txt'
  exit
  mutt -s "mysql changes" me123@mail.com -a /mysqlchanges.txt &lt; /mail.txt
  </code></pre>