I am running some matlab code as a part of a bigger application. The top level script is written in bash and uses matlab, python and some other programs. Therefore, I use the
matlab -nosplash -nodisplay -nodesktop -singleCompThread -noFigureWindows -r SCRIPT.m
command in a bash for loop. I have a shared matlab license and have to connect to a license server (while using a VPN). Due to sometimes poor connection or VPN server problem, the command fails with a license error 96
Licensing error: -96,7. System Error: 2
My question is as follows.
Is it possible to request the license for matlab (e.g. at the start of the bash script) so that the license server does not need to be contacted every time matlab starts (in a bash for loop)? For example, is it possible spawn an instance of matlab that would somehow keep the license occupied for all other future matlab instances?
Thanks in advance.