tmulti platform matlab script launcher - cosmo - front and backend for Markov-Chain Monte Carlo inversion of cosmogenic nuclide concentrations
HTML git clone git://src.adamsgaard.dk/cosmo
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 600bf606b3ab0f3680aac1da0cf8a16e7091ec19
DIR parent 66a15cb37a17872fc0d6a03b3867a411719fa175
HTML Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Wed, 2 Sep 2015 13:01:16 +0200
multi platform matlab script launcher
Diffstat:
M matlab/run.sh | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
DIR diff --git a/matlab/run.sh b/matlab/run.sh
t@@ -5,5 +5,12 @@
# should continue running, until the end of days or the next reboot, whatever
# comes first.
-/Applications/MATLAB_R2014b.app/bin/matlab -nodesktop -nosplash -nodisplay \
+UNAMESTR=`uname`
+if [[ "$UNAMESTR" == 'Darwin' ]]; then # OS X
+ matlabbin=/Applications/MATLAB_R2015a.app/bin/matlab
+else # Linux
+ matlabbin=/usr/local/MATLAB/R2015a/bin/matlab
+fi
+
+$matlabbin -nodesktop -nosplash -nodisplay \
-nojvm -r "run('file_scanner_mcmc_starter.m')"