Skip to content
Snippets Groups Projects
Commit a2b83444 authored by Rohit Gupta's avatar Rohit Gupta
Browse files

kill zombie ssh processes

parent 853bad6c
No related branches found
No related tags found
No related merge requests found
...@@ -1098,6 +1098,11 @@ except KeyError: ...@@ -1098,6 +1098,11 @@ except KeyError:
print "Please set the environment variable OPENAIR_TARGETS in the .bashrc" print "Please set the environment variable OPENAIR_TARGETS in the .bashrc"
sys.exit(1) sys.exit(1)
print "Killing zombie ssh sessions from earlier sessions..."
cmd='ps aux |grep \"/usr/bin/ssh -q -l guptar\"|tr -s \" \" :|cut -f 2 -d :|xargs kill -9 \''
os.system(cmd)
# get the oai object # get the oai object
host = os.uname()[1] host = os.uname()[1]
...@@ -1207,11 +1212,6 @@ if localshell == 0: ...@@ -1207,11 +1212,6 @@ if localshell == 0:
result = oai_list[index].send_expect_false('sudo -S -v','may not run sudo',True) result = oai_list[index].send_expect_false('sudo -S -v','may not run sudo',True)
print "Sudo permissions..." + result print "Sudo permissions..." + result
print "Killing zombie ssh sessions from earlier sessions..."
cmd='ps aux |grep \"/usr/bin/ssh -q -l guptar\"|tr -s \" \" :|cut -f 2 -d :|xargs kill -9 \''
result=oai_list[index].send_recv(cmd, True)
print result
print '\nCleaning Older running programs : ' + CleanUpOldProgs print '\nCleaning Older running programs : ' + CleanUpOldProgs
cleanOldPrograms(oai_list[index], CleanUpOldProgs, CleanUpAluLteBox, ExmimoRfStop) cleanOldPrograms(oai_list[index], CleanUpOldProgs, CleanUpAluLteBox, ExmimoRfStop)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment