Hi all,
I am trying to write a shell script that submit a couple of jobs .Then in the "job.e.." files looks for the "Finished with all tasks." string and if it exits it continues to lets say step 3 submitting job3 and if not to step 4 and submitting job4. Using commands "qsub job3" and "qsub sub4" respectively. Here is my first trial:
for (( i = 1 ; i <= 2; i++ ))
do
find . -name "job_$i.e*" -exec grep "Finished with all tasks." '{}' \; -print
done
But the above command just prints weather the string exists or not and I don't know how I can proceed from here. I really appreciate any suggestion.