I am running matlab on 48 virtual machines and would like to automate it. I ssh into the machines then use matlab -r matlab_command > outfile.txt & to get t
matlab -r matlab_command > outfile.txt &
I found some useful link Tips for Running Large Computations and nohup
nohup nice matlab -nodisplay -nosplash outfile.txt > 2>dev/null &
maybe this can fix your problem.