How can I use disp() command when submitting jobs to cluster running on 'R'?
1 view (last 30 days)
Show older comments
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.
0 Comments
Answers (0)
See Also
Categories
Find more on Third-Party Cluster Configuration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!