title: Cronjob script fails but manually runs fine
body: <p>I have script which runs manually fine but not getting the desired output when run through cronjob. Please let me know if anything wrong with the script.</p>
  
  <pre><code>#!/usr/bin/ksh
  
  file1=$(find *-* -mtime 1)
  
  file2=$(find *-* -mtime 2)
  
  
  basefile1=$(basename $file1)
  basefile2=$(basename $file2)
  
  
  cd /gtxappl/Release/SCMAudit
  
  ./cmp.sh $basefile1 $basefile2 &gt; dailyAuditChecks.txt
  
  mailx -s "Daily Checks Report" ****@homeretailgroup.com &lt; dailyAuditChecks.txt
  </code></pre>