Clear Filters
Clear Filters

How can I monitor the progress of my Matlab task while the task is submitted to cluster via batch file?

4 views (last 30 days)
Hi,
I have a question about running matlab script via batch file. I have some disp() command in for loop so as to show the progress (how much percentage was completed) while the sript is run via GUI. But how is it possible for me to keep this function or other alternatives to monitor the task progress when I submit the script to the cluster via batch file?
Following is my batch file:
#!/bin/sh
#BSUB -q sky-ib
#BSUB -J Matlab_forcing
#BSUB -eo MatJob.err
#BSUB -oo MatJob.out
. etc/profile
module unload
module add matlab/2018a
cd /gpfs/home/ctd16ynu/scratch/
matlab -nodispaly -nojvm -nodesktop -nosplash -r calculate_forcing2
Many thanks!

Answers (0)

Categories

Find more on Startup and Shutdown 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!