Files
MP-SPDZ/Scripts/mal-rep-bin.sh

20 lines
286 B
Bash
Executable File

#!/bin/bash
port=$[RANDOM+1024]
for i in 0 1 2; do
IFS=""
log="mal-rep-bin-$*-$i"
IFS=" "
$prefix ./malicious-rep-bin-party.x -p $i -pn $port $* 2>&1 |
{
if test $i = 0; then
tee -a logs/$log
else
cat >> logs/$log
fi
} & true
done
wait || exit 1