diff --git a/script/network/bts1gensub.sh b/script/network/bts1gensub.sh index 4b6512c..e649a81 100755 --- a/script/network/bts1gensub.sh +++ b/script/network/bts1gensub.sh @@ -107,7 +107,7 @@ echo -e "All the jobs are finished !!\n" email_note $email "Stage 1" "Completed !!!" else echo -e "Please notice that some of the jobs are unfinished. Program will stop and please try to find the problem. \n" -email_note $email "Stage 1" "Stopped ..." +email_note $email "Stage 1" "Failed ..." grep -Eo '[0-9]+$' submit1_log | xargs scancel kill -10 $job_id exit -1 diff --git a/script/network/bts2gensub.sh b/script/network/bts2gensub.sh index 018718b..24db1fa 100755 --- a/script/network/bts2gensub.sh +++ b/script/network/bts2gensub.sh @@ -111,7 +111,7 @@ echo -e "All the jobs are finished !!\n" email_note $email "Stage 2" "Completed !!!" else echo -e "Please notice that some of the jobs are unfinished. Program will stop and please try to find the problem. \n" -email_note $email "Stage 2" "Stopped ..." +email_note $email "Stage 2" "Failed ..." grep -Eo '[0-9]+$' submit2_log | xargs scancel kill -10 $job_id exit -1