Switch matlab license.sh

From Colettapedia
Jump to navigation Jump to search
#!/bin/sh
# enable debug output
# set -v
# set -x
# Get the location of the local matlab installation
# by dereferencing the symbolic link and parsing what is returned
MATLAB_INSTALL_LOCATION=`readlink -f $(which matlab) | sed -r "s/\/bin\/matlab//"`
sudo cp $MATLAB_INSTALL_LOCATION/etc/MLM.opt $MATLAB_INSTALL_LOCATION/etc/MLM.opt.most_recent
sudo cp /iicbu/d1iicbu/colettace/MLM.opt $MATLAB_INSTALL_LOCATION/etc/MLM.opt
sudo $MATLAB_INSTALL_LOCATION/etc/lmdown
sudo rm -f /var/rmp/lm_TMW/vd1 /var/tmp/lm_TMW.ld /var/tmp/lm_TMW.log
$MATLAB_INSTALL_LOCATION/etc/lmstart