repro-fig9-livenet 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/bash
  2. # Reproduce the live network experiments for Figure 9 of the paper.
  3. # We need these environment variables set:
  4. # PRAC_SSH_P0_USERHOST: the user@host to ssh to for P0
  5. # PRAC_SSH_P0_SSHOPTS: any options to ssh you need to ssh to P0
  6. # PRAC_SSH_P0_IP: the IP address P0 can listen for connections on
  7. # PRAC_SSH_P0_DIR: the directory relative to the homedir where the prac
  8. # repo is checked out and built
  9. # PRAC_SSH_P1_USERHOST: the user@host to ssh to for P1
  10. # PRAC_SSH_P1_SSHOPTS: any options to ssh you need to ssh to P1
  11. # PRAC_SSH_P1_IP: the IP address P1 can listen for connections on
  12. # PRAC_SSH_P1_DIR: the directory relative to the homedir where the prac
  13. # repo is checked out and built
  14. # PRAC_SSH_P2_USERHOST: the user@host to ssh to for P2
  15. # PRAC_SSH_P2_SSHOPTS: any options to ssh you need to ssh to P2
  16. # PRAC_SSH_P2_IP: the IP address P2 can listen for connections on
  17. # PRAC_SSH_P2_DIR: the directory relative to the homedir where the prac
  18. # repo is checked out and built
  19. # Add additional env vars
  20. export PRAC_USE_SSH=1
  21. export PRAC_PARSE_HOST=1
  22. # cd into the directory containing this script (from the bash faq 028)
  23. if [[ $BASH_SOURCE = */* ]]; then
  24. cd -- "${BASH_SOURCE%/*}/" || exit
  25. fi
  26. # The number of iterations to do
  27. if [ "$1" = "" ]; then
  28. niters=3
  29. else
  30. niters="$1"
  31. fi
  32. # Run the PRAC experiments
  33. ./repro fig9 $niters