Jon Hall | 3a44010 | 2015-07-06 14:47:26 -0700 | [diff] [blame] | 1 | #!/bin/bash |
2 | # This script will kill any TestON, ssh, and Mininet sessions that are running. | ||||
3 | sudo kill -9 `ps -ef | grep "./cli.py" | grep -v grep | awk '{print $2}'` | ||||
Jon Hall | f632d20 | 2015-07-30 15:45:11 -0700 | [diff] [blame] | 4 | sudo kill -9 `ps -ef | grep "bin/teston" | grep -v grep | awk '{print $2}'` |
Jon Hall | 3a44010 | 2015-07-06 14:47:26 -0700 | [diff] [blame] | 5 | sudo kill -9 `ps -ef | grep "ssh -X" | grep -v grep | awk '{print $2}'` |
6 | sudo mn -c |