Running matlab in the background

后端 未结 6 658
北恋
北恋 2021-02-04 17:25

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

6条回答
  •  深忆病人
    2021-02-04 17:50

    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.

提交回复
热议问题