repetitive matlab lauch - licensing error 96

1 view (last 30 days)
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.

Answers (1)

Steven Lord
Steven Lord on 6 Apr 2017
You could check with your license administrator if license borrowing is an option.
  2 Comments
Ondrej Tichacek
Ondrej Tichacek on 6 Apr 2017
Thanks for the input, I didn't know this is an option. Unfortunately, license borrowing is apparently not supported for academic licenses (which is the one I have access to).
Steven Lord
Steven Lord on 6 Apr 2017
In that case I recommend you and your license administrator contact Technical Support to ask if the Support staff has any alternatives that would work with the license you have.

Sign in to comment.

Categories

Find more on Manage Products in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!