aboutsummaryrefslogtreecommitdiff
path: root/scripts/run_demo.sh
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2018-08-18 16:28:32 -0400
committerDeterminant <ted.sybil@gmail.com>2018-08-18 16:28:32 -0400
commit559465ecfa891da2b547c0e144e981a01ff4af33 (patch)
treee8d72598ab5bdd81383226349d000ef060c740fd /scripts/run_demo.sh
parent7c5f0eb6222639ecb9e2e8422481e4f5f87ba721 (diff)
add more scripts
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