In rc.local
I added a line for my shell file I want to run on boot:
/direc/tory/<fileName>.sh
The script looks like this:
#!bin/sh
wget "http://somesite.org/someJava.jar" -O /direc/tory/someJavaFile.jar
java -d64 -Xincgc -Xmx512M -jar /direc/tory/someJavaFile.jar
and I would assume it would run and load in the /direc/tory/
folder but it keeps running in /
and it saves all its files in there as well.
What do I have to do to force it to run in the /direc/tory/
folder?