How can I use disp() command when submitting jobs to cluster running on 'R'?

조회 수: 1 (최근 30일)
Kiran Sagar
Kiran Sagar 2016년 4월 22일
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개)

카테고리

Help CenterFile Exchange에서 Third-Party Cluster Configuration에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by