View Single Post
widebody911 widebody911 is offline
Too big to fail
 
widebody911's Avatar
 
Join Date: Jan 2002
Location: Carmichael, CA
Posts: 33,894
Garage
Send a message via AIM to widebody911 Send a message via Yahoo to widebody911
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
__________________
"You go to the track with the Porsche you have, not the Porsche you wish you had."
'03 E46 M3
'57 356A
Various VWs
Old 11-18-2004, 03:35 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #28 (permalink)