How can I use disp() command when submitting jobs to cluster running on 'R'?
2 views (last 30 days)
I am running a MATLAB code on a cluster which uses something called 'R'. I submit the job using the command qsub using a .sh file. The code works fine, but I want to check the progress in real time, while the code is running. Usually when working on my PC, I use the disp() command, but that does not work when I submit jobs to a cluster.
The code inside the sh file is:
echo "Current working directory is now: " `pwd`
echo "Starting MATLAB at `date`"
matlab -nojvm -nodisplay -nosplash < my_MATLAB_script.m > output.out
echo "MATLAB run completed at `date`"
Could someone please guide me to implement this? Thank you for the help.