I have a python script that submits multiple jobs using bjobs. Below is the code snippet
for jobs in job_list:
i=0
os.system("bsub -J JOB_{} jobs".format(str(i))
i+=1
I want to print "Finished runnning" only when all the jobs have completed. How can I do the same ?