aboutsummaryrefslogtreecommitdiff
path: root/run_replicas.sh
blob: 213b6b71a091b6e6bcfac9243e71ba647ad23c46 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
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
wait