Bash loop avorted because of Matlab (I think)
이전 댓글 표시
Hello everyone. First, I'm sorry for all the mistakes I can make in english, however you should be able to understand me. Here is the matter : I have a bash script and there is inside this kind of loop :
while IFS=' ' read var1 var2
....
./matlab.bash
done < file.txt
And there is inside the matlab.bash script only bash commands, exept this one :
matlab -nodesktop -nosplash -r sigma_fit
The fact is that the which loop stoped after the first iteration, and it's because of this matlab command, because when I comment it, the loop do all the iteration. Is there any well known kind of interaction between matlab and bash loops ?
Just to know : sigma_fit is a matlab script ended by quit.
Thank you for your answers !!
Kind regards,
Liris
댓글 수: 3
Steven Lord
2016년 3월 10일
Define "which loop stoped" -- did you receive an error message? Did the loop stall? Did you mean something else? Without that information it's probably going to be impossible to determine what happened.
Cyril GADAL
2016년 3월 11일
편집: Cyril GADAL
2016년 3월 11일
Jamal Mousavi
2020년 4월 17일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!