You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
526 B

  1. cd peer
  2. echo "compile Go"
  3. echo "go build"
  4. go build
  5. sleep 3
  6. echo "peer server"
  7. xterm -hold -e './peer server 3001 3002' &
  8. sleep 2
  9. echo "register the first block"
  10. curl -X POST http://127.0.0.1:3002/register -d '{"address": "firstaddress"}'
  11. sleep 2
  12. echo "peer 1"
  13. xterm -hold -e './peer client 3003 3004' &
  14. sleep 2
  15. echo "peer 2"
  16. xterm -hold -e './peer client 3005 3006' &
  17. sleep 2
  18. echo "peer 3"
  19. xterm -hold -e './peer client 3007 3008' &
  20. sleep 1
  21. echo "running serverCA"
  22. cd ..
  23. cd serverCA
  24. xterm -hold -e 'go run *.go' &