バックグラウンドでサーバー上で複数のプロセスを同時に実行することになっている次のループを実行しています。
for ((i = 1; i <= n; i++)); do
matlab -nojvm -r "pth=path(/myfold);addpath(pth);script1;pause(1);func1(i,n);clear;exit" </dev/null &
done
バックグラウンド コマンドは中断されません (tnx Dennis Williamson) が、得られる結果は次のとおりです。
1. 注釈:
[1] 1000
[2] 2000
[3] 3000
[4] 4000
[5] 5000
2. matlab nojvm txt
[1] Done 'name of the above command'
[2] Done 'name of the above command'
[3] Done 'name of the above command'
[4]- Done 'name of the above command'
[5]+ Done 'name of the above command'
私がプロセスを使用しps
たりtop
、プロセスを見たりするとき、何もありません。
このスクリプトは少なくとも 1 時間実行する必要がありますが、必要な結果が得られません。
誰が何が悪いのか分かりますか?