aboutsummaryrefslogtreecommitdiff
path: root/scripts/run_demo.sh
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2018-09-03 00:13:58 -0400
committerDeterminant <[email protected]>2018-09-03 00:13:58 -0400
commitc3368b286fbb1d6b8c22af8ce21e57b5a5720445 (patch)
tree061de96c58873f642a24a151af1bf7ed937fb1c3 /scripts/run_demo.sh
parent2535cd89c13485cc4a8e68145c7cb5e8e9398e5c (diff)
parent17f7fd821cf71717a158e2c38699baa6ab2f2af8 (diff)
Merge branch 'master' of github.com:Determinant/hot-stuff
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