title: Cron Job - How to send an output file to an email
body: <p>I have this line in crontab:</p>
  
  <pre><code>* * * * * /var/www/dir/sh/mysql_dumb.sh | mail -s "mysql_dump" example@mail.com
  </code></pre>
  
  <p>(every minute only a sample)</p>
  
  <p>So, all works fine, but the email is empty.</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>The output from mysql_dumb.sh is a <code>*.sql</code> file and they save the file in a directory.</p>
  
  <p>How can I send a copy (*.sql file) from this output -> <code>mysql_dumb.sh</code> to my email?</p>
  
  <p>mysql_dumb.sh:</p>
  
  <pre><code>#!/bin/bash
  PATH=/usr/bin:/bin
  SHELL=/bin/bash
  /usr/bin/mysqldump -u USER -pPASS DATABASE &gt; /var/www/dir/backup/backup_DB_`date +%d_%m_%Y`.sql
  </code></pre>