title: linux cron job isn't running
body: <p>I have a Ubuntu Server 10.</p>
  
  <p>At the root cron I have a script to run every day at the same hour.</p>
  
  <p>Running the script manually it's run fine, but in the cron it doesn't run.</p>
  
  <p>At the syslog I got this:</p>
  
  <pre><code>Aug 23 09:22:01 database CRON[6884]: (root) CMD (./bkp.sh &gt;&gt; /tmp/bkp.log)
  Aug 23 09:22:01 database CRON[6883]: (CRON) error (grandchild #6884 failed with exit status 2)
  </code></pre>
  
  <hr>
  
  <p>I found the possible source of the problem, I added some LOGs (echo) in the script...</p>
  
  <p><strong>During script execution, it exits on a "function" definition...</strong></p>
  
  <p>It seems that I have no access to command "function"</p>
  
  <p>How can I solve this?</p>