diff --git a/src/run.sh b/src/run.sh index 106ab05..48960ed 100755 --- a/src/run.sh +++ b/src/run.sh @@ -1,12 +1,14 @@ #!/usr/bin/env bash +PROG="semi2k-party.x" + +if [[ $1 == "-k" ]]; then + killall "$PROG" + exit "$?" +fi + cd "$(dirname "$0")/MP-SPDZ" || exit 1 -if [[ $1 == "-k" ]]; then - killall semi2k-party.x - exit $? -fi - for i in $(seq 0 2); do - ./semi2k-party.x -v -N 3 -p "$i" -e gale_shapley > "../out-p$i.txt" 2>&1 & + "./$PROG" -v -N 3 -p "$i" -e gale_shapley > "../out-p$i.txt" 2>&1 & done