From 11c217dea74ba6c28009e599c7d17f36207b4574 Mon Sep 17 00:00:00 2001 From: jiang548 Date: Wed, 4 May 2022 18:33:09 -0400 Subject: [PATCH] progressbar --- script/network/bts1gensub.sh | 2 +- script/network/bts2gensub.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/script/network/bts1gensub.sh b/script/network/bts1gensub.sh index 503b4fd..98a476d 100755 --- a/script/network/bts1gensub.sh +++ b/script/network/bts1gensub.sh @@ -76,6 +76,7 @@ echo "sbatch -W sub$CHUNK.sh &" >> qsub1.sh fi walltime_s=$(echo $walltime | awk -F: '{ print (3600 * $1) + (60 * $2) + $3 }') +echo "progress_bar $walltime_s 100 40 params $NJOBS slurm &" >> qsub1.sh echo "wait" >> qsub1.sh #tmpqueue=($(slist|grep $queue)) @@ -92,7 +93,6 @@ if [[ $interactive == "T" || $interactive == "True" || $interactive == "TRUE" ]] sed -i 's/sbatch -W/srun -n1 bash/g;s/&/>\/dev\/null/g' qsub1.sh echo -e "Running $(wc -l < job1_command) jobs ... \n" else -echo "progress_bar $walltime_s 100 40 params $NJOBS slurm &" >> qsub1.sh echo -e "Submitting $(wc -l < job1_command) jobs ... \n" fi diff --git a/script/network/bts2gensub.sh b/script/network/bts2gensub.sh index 412596c..55f87d5 100755 --- a/script/network/bts2gensub.sh +++ b/script/network/bts2gensub.sh @@ -80,6 +80,7 @@ echo "sbatch -W sub$CHUNK.sh &" >> qsub2.sh fi walltime_s=$(echo $walltime | awk -F: '{ print (3600 * $1) + (60 * $2) + $3 }') +echo "progress_bar $walltime_s 100 40 params $NJOBS slurm &" >> qsub2.sh echo "wait" >> qsub2.sh #tmpqueue=($(slist|grep $queue)) @@ -96,7 +97,6 @@ if [[ $interactive == "T" || $interactive == "True" || $interactive == "TRUE" ]] sed -i 's/sbatch -W/srun -n1 bash/g;s/&/>\/dev\/null/g' qsub2.sh echo -e "Running $(wc -l < job2_command) jobs ... \n" else -echo "progress_bar $walltime_s 100 40 params $NJOBS slurm &" >> qsub2.sh echo -e "Submitting $(wc -l < job2_command) jobs ... \n" fi