aboutsummaryrefslogtreecommitdiff
path: root/run_replicas.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run_replicas.sh')
-rwxr-xr-xrun_replicas.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/run_replicas.sh b/run_replicas.sh
index c106d42..213b6b7 100755
--- a/run_replicas.sh
+++ b/run_replicas.sh
@@ -1,5 +1,10 @@
#!/bin/bash
-for i in {0..3}; do
+rep=({0..3})
+if [[ $# -gt 0 ]]; then
+ rep=($@)
+fi
+for i in "${rep[@]}"; do
+ echo "starting replica $i"
#valgrind ./hotstuff-app --conf hotstuff-sec${i}.conf > log${i} 2>&1 &
./hotstuff-app --conf hotstuff-sec${i}.conf > log${i} 2>&1 &
done