Hey guys,
Before you guys jump on me for asking this question which is asked a million times over and over.
Yes I have tried exporting my paths and variables and crontab still will not run my script. I'm sure I am doing something wrong.
I have a shell script which runs a jar file. This is not working correctly.
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.
Here is what my script looks like today after several modifications:
#!/bin/bash --
. /root/.bash_profile
/usr/bin/java -jar Pharmagistics_auto.jar -o
...
those are the most important pieces of the script, the rest are straightforward shell based.
Can someone tell me what I am doing wrong?
If you need more info please let me know and I will make sure to include them. Thanks.
Thank's to all that helped me on this. Ultimately Dennis' comment got it going thankfully. I truly appreciate all of your time and effort.