2010/04/05

How to run script in batch mode or background

 

comsol matlab -ml -nodesktop -ml -nosplash -mlr "myscript, exit"

Note: add a line at the beginning of the script

flreport('off')

in background

nohup comsol matlab –ml –nodesktop –ml –nosplash < myscript.m >& nohup.log &