2
0

testbed_cleanup.sh 583 B

1234567891011121314
  1. #!/bin/sh
  2. ###################################################################################
  3. # Script to clean a previous run of testbed which has crashed. This scripts kills #
  4. # the peers and cleans the temporary files created for those peers #
  5. # #
  6. # Author: Sree Harsha Totakura #
  7. ###################################################################################
  8. for host in `cut -d : -f 1 < infiniband_cluster.hosts | cut -d @ -f 2`
  9. do
  10. echo "ssh --> $host"
  11. ssh $host 'pkill -SIGKILL gnunet; rm -rf /tmp/gnunet-pipe*; rm -rf /tmp/testbed*'
  12. done