title: shell script not running via crontab, runs fine manually
body: <p>I have tried exporting my paths and variables and crontab still will not run my script. I'm sure I am doing something wrong.</p>
  
  <p>I have a shell script which runs a jar file. This is not working correctly. </p>
  
  <p>After reading around I have read this is commonly due to incorrect paths due to cron running via its own shell instance and therefore does not have the same preferences setup as my profile does.</p>
  
  <p>Here is what my script looks like today after several modifications:</p>
  
  <pre><code>#!/bin/bash --
  
  . /root/.bash_profile
  
  /usr/bin/java -jar Pharmagistics_auto.jar -o
  
  ...
  </code></pre>
  
  <p>those are the most important pieces of the script, the rest are straightforward shell based.</p>
  
  <p>Can someone tell me what I am doing wrong?</p>