aboutsummaryrefslogtreecommitdiff
path: root/contrib/scripts/testbed_cleanup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/scripts/testbed_cleanup.sh')
-rwxr-xr-xcontrib/scripts/testbed_cleanup.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/scripts/testbed_cleanup.sh b/contrib/scripts/testbed_cleanup.sh
new file mode 100755
index 0000000000..57413fba0a
--- /dev/null
+++ b/contrib/scripts/testbed_cleanup.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+###################################################################################
+# Script to clean a previous run of testbed which has crashed. This scripts kills #
+# the peers and cleans the temporary files created for those peers #
+# #
+# Author: Sree Harsha Totakura #
+###################################################################################
+
+for host in `cut -d : -f 1 < infiniband_cluster.hosts | cut -d @ -f 2`
+do
+ echo "ssh --> $host"
+ ssh $host 'pkill -SIGKILL gnunet; rm -rf /tmp/gnunet-pipe*; rm -rf /tmp/testbed*'
+done