I have a very simple question.
I've created multiple scheduled bash files that run 3 or 4 MATLAB scripts. Something like:
cat /pathtobash/bash_script.sh
#!/bin/bash
~/path/run_mat_script.sh ~/path2/matlab matlab_script
~/path/run_mat_script.sh ~/path3/matlab matlab_script2
~/path/run_mat_script.sh ~/path2/matlab matlab_script3
One of those MATLAB scripts in one (or multiple) bash scripts, is not running as it should and just "hangs"
How can I find out which one is failing?
I've tried both "top" and "ps" commands, which just tell me that a MATLAB command is running.
For example:
ps ax | grep MATLAB
498 ? Sl 45:00 /opt/matlab/bin/glnxa64/MATLAB -nodisplay -nosplash
2059 ? Sl 32:35 /opt/matlab/bin/glnxa64/MATLAB -nodisplay -nosplash
4098 ? Sl 14:33 /opt/matlab/bin/glnxa64/MATLAB -nodisplay -nosplash
5690 pts/9 S+ 0:00 grep MATLAB
29409 ? Sl 70:20 /opt/matlab/bin/glnxa64/MATLAB -nodisplay -nosplash
29797 ? Sl 69:10 /opt/matlab/bin/glnxa64/MATLAB -nodisplay -nosplash
32233 ? Sl 50:00 /opt/matlab/bin/glnxa64/MATLAB -nodisplay -nosplash
Thank you for the help