aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest-k.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/test-k.sh b/test-k.sh
index f8256f9..9001047 100755
--- a/test-k.sh
+++ b/test-k.sh
@@ -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