aboutsummaryrefslogtreecommitdiff
path: root/scripts/run_demo.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/run_demo.sh')
-rwxr-xr-xscripts/run_demo.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/run_demo.sh b/scripts/run_demo.sh
new file mode 100755
index 0000000..5f54787
--- /dev/null
+++ b/scripts/run_demo.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+rep=({0..3})
+if [[ $# -gt 0 ]]; then
+ rep=($@)
+fi
+for i in "${rep[@]}"; do
+ echo "starting replica $i"
+ #valgrind --leak-check=full ./hotstuff-app --conf hotstuff-sec${i}.conf > log${i} 2>&1 &
+ #gdb -ex r -ex bt -ex q --args ./hotstuff-app --conf hotstuff-sec${i}.conf > log${i} 2>&1 &
+ ./hotstuff-app --conf hotstuff-sec${i}.conf > log${i} 2>&1 &
+done
+wait