aboutsummaryrefslogblamecommitdiff
path: root/run_replicas.sh
blob: f053701999b9fa5689b296391b2f2fec1bb2afd6 (plain) (tree)
1
2
3
4
5
6
7
8
9
           





                              

                                                                                               
                                                                 

    
#!/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