title: bash script running from cronjob command not found
body: <p>my crontab is as follows:</p>
  
  <pre>
  SHELL=/bin/bash
  PATH=/sbin:/bin:/usr/sbin:/usr/bin
  MAILTO=root
  HOME=/
  01 04 * * * root /home/sphinx_scripts/daily_update_index.sh
  </pre>
  
  <p>daily_update_index.sh is as follows:</p>
  
  <pre>
  indexer  --rotate xxx
  </pre>
  
  <p>now if I run /home/sphinx_scripts/daily_update_index.sh from anywhere(as root), it works fine.   But I get emails daily from cron job saying "command indexer is not found".  the full path of the indexer is /usr/loca/bin/indexer.  Why would I get such an error?</p>