I wrote a new wrapper:
Code: Select all
#!/bin/sh
JAVA_HOME=/opt/\ a\ truly\ silly\ path\ /jre1.6.0_29
JAVA=${JAVA_HOME}/bin/java
RMHOME=/local/\ an\ even\ sillier\ path\
PROPSFILE=${HOME}/.\ if\ this\ is\ not\ sick,\ nothing\ is\
LIBRARIES=/local/\ truly\ braindamaged\ library\ path\ \
if [ `basename $0` = "rmir" ] ; then
RMIR=-ir
elif [ `basename $0` = "rmaster" ] ; then
RMIR=-rm
else
RMIR=
fi
if [ $# -eq 1 ] ; then
if [ `dirname $1` = "." ] ; then
file=`pwd`/$1
else
file=$1
fi
exec "${JAVA}" -Djava.library.path="${LIBRARIES}" -jar "${RMHOME}/RemoteMaster.jar" -h "${RMHOME}" -properties "${PROPSFILE}" ${RMIR} "$file"
fi
exec "${JAVA}" -Djava.library.path="${LIBRARIES}" -jar "${RMHOME}/RemoteMaster.jar" -h "${RMHOME}" -properties "${PROPSFILE}" ${RMIR}
However, the wrappers rmaster.sh and rmir.sh will break on pathnames with spaces.
@JD4x4: You do not need any wrapper at all, just something like
Code: Select all
java -jar "/pathname possibly with spaces/RemoteMaster.jar" -h "/pathname possibly with spaces"Next issue:
IFAIK, the only thing written under normal operation is the property file RemoteMaster.properties. This can be changed with the (undocumented?) -properties option (see my script above). Also in the Windows world it is considered a bad habit of writing to the installation directory. Putting the property file in, e.g. the users home direcory (Linux/Mac?), AppData-something (Windows) may be everything needed to make the program clean in this sense.gfb107 wrote:It also expects to have full read/write/execute permission to those files and directories.