From 573c0866321afc7f5bba98f6d908a9888552be46 Mon Sep 17 00:00:00 2001 From: Sarvesh Prakash Nikumbh Date: Mon, 31 Jul 2017 18:18:15 +0200 Subject: [PATCH] shell script to run CoMIK executable added. --- run_CoMIK.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 run_CoMIK.sh diff --git a/run_CoMIK.sh b/run_CoMIK.sh new file mode 100755 index 0000000..d56396c --- /dev/null +++ b/run_CoMIK.sh @@ -0,0 +1,33 @@ +#!/bin/sh +# script for execution of deployed applications +# +# Sets up the MATLAB Runtime environment for the current $ARCH and executes +# the specified command. +# +exe_name=$0 +exe_dir=`dirname "$0"` +echo "------------------------------------------" +if [ "x$1" = "x" ]; then + echo Usage: + echo $0 \ args +else + echo Setting up environment variables + MCRROOT="$1" + echo --- + LD_LIBRARY_PATH=.:${MCRROOT}/runtime/glnxa64 ; + LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/bin/glnxa64 ; + LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/sys/os/glnxa64; + LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/sys/opengl/lib/glnxa64; + export LD_LIBRARY_PATH; + echo LD_LIBRARY_PATH is ${LD_LIBRARY_PATH}; + shift 1 + args= + while [ $# -gt 0 ]; do + token=$1 + args="${args} \"${token}\"" + shift + done + eval "\"${exe_dir}/CoMIK\"" $args +fi +exit +