Quote:
Originally posted by bryanthompson
#! /bin/sh
cd /home/weather/java
java -noverify DataGrabber
If I run the .sh from terminal, it runs fine... I'm just not getting it to run at startup correctly...
|
Remember that in the init scripts, there isn't much of an evironment. Add an explicit "PATH=(your path here); export PATH" to the 2nd line of your startup script.
You can also turn on debugging, redirect stderr to a file, reboot, and look at the contents of the file to see what's going on.
#! /bin/sh
PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin
export PATH
set -x
exec 2> /tmp/weather.log
cd /home/weather/java
java -noverify DataGrabber