commit | 8a9f10a0a511014bca6be5e6c4bf4ae55f8af828 | [log] [tgz] |
---|---|---|
author | Jon Hall <jhall@onlab.us> | Mon Jul 06 14:50:22 2015 -0700 |
committer | Jon Hall <jhall@onlab.us> | Mon Jul 06 14:50:22 2015 -0700 |
tree | 78b9896e2f3e725b940d583ddb333829f5720b8f | |
parent | 6234bb2b366e7c14fe505b9074c823d561e1db04 [diff] | |
parent | 3a44010c7d390fb944e5c47f319ba90d4747cf36 [diff] |
Merge pull request #147 from opennetworkinglab/devl/cleanup_script Cleanup script
diff --git a/TestON/bin/cleanup.sh b/TestON/bin/cleanup.sh new file mode 100755 index 0000000..d921147 --- /dev/null +++ b/TestON/bin/cleanup.sh
@@ -0,0 +1,5 @@ +#!/bin/bash +# This script will kill any TestON, ssh, and Mininet sessions that are running. +sudo kill -9 `ps -ef | grep "./cli.py" | grep -v grep | awk '{print $2}'` +sudo kill -9 `ps -ef | grep "ssh -X" | grep -v grep | awk '{print $2}'` +sudo mn -c