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
Use nohup command on UNIX to prevent MATLAB stop when you logout.
nohup matlab -nodisplay -nosplash -r matlab_command > outfile.txt &
And don't forget to include exit;
at the end of matlab_command script.
UPDATE:
Try this solution: Is it possible to run MATLAB in the background under UNIX?
There is an explanation here.