How can I run MATLAB in batch mode on my Mac when I log in remotely so that the process runs when I am logged out?
Accepted Answer
More Answers (1)
0 votes
2 Comments
The command is not truncated, but it does depend upon an alias having been created pointing matlab to the correct location, or at least that /Applications/MATLAB_R20XXx.app/bin/ being on the path.
The command given is for csh / tcsh, which is an odd thing to have given as it is not the default for Mac. The default or Mac is bash. The bash equivalent would be
nohup matlab -r mybgprocess -nodisplay -nosplash -nojvm -nodesktop > matlab.out 2>&1 < mystdio.txt &
Here, matlab.out indicates the name of the file where all of the output is to be sent, and mystdio.txt indicates the name of the file from which all input() statements are to take their input (might affect what happens for keyboard() as well.)
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!