diff options
-rwxr-xr-x | test-k.sh | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -1,6 +1,17 @@ #!/bin/bash for p in $(seq 3 2 31);do - for q in $(seq 1 2 11);do + for q in $(seq 1 2 5);do ((python3 evaluate.py -p $p -q $q -r;echo "p: $p | q: $q";) >> ~/pq-vals.txt) & + pid=$! + done + while kill -0 $pid;do + sleep 5 + done + for q in $(seq 7 2 11);do + ((python3 evaluate.py -p $p -q $q -r;echo "p: $p | q: $q";) >> ~/pq-vals.txt) & + pid=$! + done + while ps -p $pid > /dev/null;do + sleep 5 done done |