diff --git a/src/run.sh b/src/run.sh index cb8fb10..688cc03 100755 --- a/src/run.sh +++ b/src/run.sh @@ -2,6 +2,11 @@ cd MP-SPDZ +if [[ $1 == "-k" ]]; then + killall semi-party.x + exit $? +fi + for i in $(seq 0 2); do - eval ".//semi-party.x -N 3 -p $i gale_shapley > ../out-p$i.txt 2>&1 &" + ./semi-party.x -N 3 -p "$i" gale_shapley > "../out-p$i.txt" 2>&1 & done