experiments-OT.sh 506 B

123456789101112
  1. #!/bin/bash
  2. A=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' party0)
  3. B=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' party1)
  4. #C=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' party2)
  5. echo $A
  6. echo $B
  7. docker exec -w /root/duoram/2p-preprocessing party1 ./OT $A $B 1 128 &
  8. echo "P1 launched"
  9. sleep 1
  10. docker exec -w /root/duoram/2p-preprocessing party0 ./OT $A $B 0 128 &
  11. echo "P0 launched"
  12. wait