blob: 313114c21afa385bde71f56392aa7bcdbfa412b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
#Get the folder in witch this bash file resides (this is the ScriptCommunicator folder).
SCRIPTCOMMUNICATOR_DIR=$(dirname $0)
#Check if this bash file is startet by a link.
if(test -L $0)
then
#Get the directory to with the link points to (this is the ScriptCommunicator folder).
SCRIPTCOMMUNICATOR_DIR=`readlink $0`
SCRIPTCOMMUNICATOR_DIR=$(dirname $SCRIPTCOMMUNICATOR_DIR)
fi
cd $SCRIPTCOMMUNICATOR_DIR
LD_LIBRARY_PATH=/opt/script-communicator-bin/lib
export LD_LIBRARY_PATH
/opt/script-communicator-bin/ScriptCommunicator "$@"
|