Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dyyu
openairinterface5G
Commits
f9cf8e5e
Commit
f9cf8e5e
authored
Aug 24, 2016
by
Rohit Gupta
Browse files
fix for script that kills old programs
parent
300fc152
Changes
1
Hide whitespace changes
Inline
Side-by-side
cmake_targets/autotests/tools/remove_old_programs.bash
View file @
f9cf8e5e
...
...
@@ -13,7 +13,7 @@ pid="$$"
echo
"pid =
$pid
"
echo
"Killing programs now..."
var
=
`
ps
-aux
|grep
-E
-i
$1
|awk
'{print $2}'
|
tr
'\n'
' '
|
sed
"s/
$pid
/ /"
`
var
=
`
ps
-aux
|grep
-E
-i
'
$1
'
|awk
'{print $2}'
|
tr
'\n'
' '
|
sed
"s/
$pid
/ /"
`
echo
$var
if
[
-n
"
$var
"
]
;
then
sudo kill
-9
$var
;
fi
...
...
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