1
0
Fork 0
mirror of https://github.com/samsapti/bachelor-project.git synced 2024-12-27 04:47:53 +00:00

Edit run.sh

This commit is contained in:
Sam A. 2023-05-15 00:07:42 +02:00
parent 55b8b5c622
commit 17377b483b
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -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