如果在命令后面加个&是没用的
matlab -nodisplay -nodesktop -nosplash -logfile test.log -r test &
matlab -nodisplay -nodesktop -nosplash -logfile test.log -r test 这是我的药运行的命令。
应该用这个,前面加个nohup,视情况而用sudo,或者切换root:
nohup matlab -nodisplay -nodesktop -nosplash -logfile test.log -r test
matlab 运行.m命令 bash命令:
https://blog.youkuaiyun.com/sinat_33425327/article/details/79125745
如果你想,让他不挂断的在后台运行,也就是说完全去点该进程与你现在这个terminal的关系。输入命令后,就在也与你无关,你这个终端还可以继续输入:其实就是在后面加一个&
nohup matlab -nodisplay -nodesktop -nosplash -logfile test.log -r test &
不想要nohup.out:
https://blog.youkuaiyun.com/geekster/article/details/6657620</