diff options
author | Determinant <[email protected]> | 2018-08-17 11:28:07 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2018-08-17 11:28:07 -0400 |
commit | 140ee49ccf0353cd29c04d0d6bd5d4da69e7d0cc (patch) | |
tree | 8b523f5d470beabea19c80d524b4fec964cea89a /scripts/run_replicas.sh | |
parent | 91112940ed5f3f85c5fce6549b601b7569ab4b1a (diff) |
add scripts; move scripts to a new directory
Diffstat (limited to 'scripts/run_replicas.sh')
-rwxr-xr-x | scripts/run_replicas.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/run_replicas.sh b/scripts/run_replicas.sh new file mode 100755 index 0000000..5f54787 --- /dev/null +++ b/scripts/run_replicas.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 |