Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alex037yang
OpenXG-RAN
Commits
a2b83444
Commit
a2b83444
authored
Jan 14, 2016
by
Rohit Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kill zombie ssh processes
parent
853bad6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
+5
-5
No files found.
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
View file @
a2b83444
...
@@ -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
'
\n
Cleaning Older running programs : '
+
CleanUpOldProgs
print
'
\n
Cleaning Older running programs : '
+
CleanUpOldProgs
cleanOldPrograms
(
oai_list
[
index
],
CleanUpOldProgs
,
CleanUpAluLteBox
,
ExmimoRfStop
)
cleanOldPrograms
(
oai_list
[
index
],
CleanUpOldProgs
,
CleanUpAluLteBox
,
ExmimoRfStop
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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