Presumably you are seeing evidence that
java net.tinyos.sf.SerialForwarder starts. Do have have any evidence that it finishes?
Presumably you are not seeing any evidence that
java Oscilloscope starts.
You could "instrument" the script to see what it does do
Code:
#start of script
tmp_file=/tmp/a-safe-name-nobody-else-would-use
> $tmp_file
java net.tinyos.sf.SerialForwarder -comm serial@/dev/ttyUSB0:telosb
echo 'DEBUG: java net.tinyos.sf.SerialForwarder returned' >> $tmp_file
if cygpath -w / >/dev/null 2>/dev/null; then
echo 'DEBUG: test passed' >> $tmp_file
CLASSPATH="oscilloscope.jar;$CLASSPATH"
else
echo 'DEBUG: test failed' >> $tmp_file
CLASSPATH="oscilloscope.jar:$CLASSPATH"
fi
echo 'DEBUG: calling java Oscilloscope' >> $tmp_file
java Oscilloscope
echo 'DEBUG: java Oscilloscope returned; script exiting' >> $tmp_file
#end of script