Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
c2d8dd96
Commit
c2d8dd96
authored
Jan 14, 2016
by
Rohit Gupta
Browse files
update for killing zombie processes
parent
a2b83444
Changes
1
Hide whitespace changes
Inline
Side-by-side
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
View file @
c2d8dd96
...
...
@@ -1099,7 +1099,7 @@ except KeyError:
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
\'
'
cmd
=
'ps aux |grep
\"
/usr/bin/ssh -q -l guptar
\"
|tr -s
\"
\"
:|cut -f 2 -d :|xargs kill -9 '
os
.
system
(
cmd
)
...
...
@@ -1114,6 +1114,12 @@ if user=='':
user
=
getpass
.
getuser
()
if
pw
==
''
:
pw
=
getpass
.
getpass
()
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 '
cmd
=
cmd
+
'; ps aux |grep
\"
/usr/bin/ssh -q -l '
+
user
+
'
\"
|tr -s
\"
\"
:|cut -f 2 -d :|xargs kill -9 '
os
.
system
(
cmd
)
print
"host = "
+
host
print
"user = "
+
user
xmlInputFile
=
os
.
environ
.
get
(
'OPENAIR_DIR'
)
+
"/cmake_targets/autotests/test_case_list.xml"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment