Salome HOME
projects
/
modules
/
yacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6551222
)
kill ompi-server on killall
author
Bernard Secher
<bernard.secher@cea.fr>
Mon, 8 Aug 2016 13:59:52 +0000
(15:59 +0200)
committer
Bernard Secher
<bernard.secher@cea.fr>
Mon, 8 Aug 2016 13:59:52 +0000
(15:59 +0200)
bin/killSalome.py
patch
|
blob
|
history
diff --git
a/bin/killSalome.py
b/bin/killSalome.py
index 41e2820a2ea4b7b11e59dbbdcdcd5d5078b6ec3b..d3039eb96b4a1b8498cb1058efc7f3f5b2df4162 100755
(executable)
--- a/
bin/killSalome.py
+++ b/
bin/killSalome.py
@@
-92,6
+92,15
@@
def killAllPorts():
pass
pass
pass
+ cmd = "ps -fea | grep '%s' | grep 'ompi-server' | grep -v 'grep' | awk '{print $2}'" % user
+ prc = commands.getoutput(cmd)
+ for field in prc.split():
+ try:
+ os.kill(int(field), signal.SIGKILL)
+ except:
+ pass
+ pass
+ pass
pass
if __name__ == "__main__":