refresh script

This commit is contained in:
2025-04-20 22:00:55 +02:00
parent fab32f1e6a
commit b7fc29ec20
26 changed files with 7943 additions and 128 deletions

37
run_Musa_lnx.sh Executable file
View File

@@ -0,0 +1,37 @@
#!/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 \<deployedMCRroot\> 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=
out=
while [ $# -gt 0 ]; do
token=$1
args="${args} \"${token}\""
out="${out}${token}"
shift
done
out="${out}_output_error.txt"
#eval "\"${exe_dir}/MUSA_lnx\"" $args > /dev/null 2>&1
eval "\"${exe_dir}/MUSA_lnx\"" $args > /tmp/${out} 2>&1
fi
exit