experiments-cpir.sh 536 B

12345678910111213
  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/cpir-read/cxx party1 ./spir_test1 $A 15 4 100 2 &
  8. echo "P1 launched"
  9. sleep 2;
  10. docker exec -w /root/duoram/cpir-read/cxx party0 ./spir_test0 $B 15 4 100 2 &
  11. echo "P0 launched"
  12. wait