Salome HOME
Restore registering CORBA objects, removed by previous wrong commit
[modules/kernel.git] / bin / killSalome.py
index 12a86ed70b84c0bfae1b11d31487761c80c8cf0b..2ea384b6367a296f9aaa63d6cbf55b74e5289ee0 100755 (executable)
@@ -92,6 +92,7 @@ def killAllPorts():
                 pass
             pass
         pass
+        # kill ompi-server needed for MPI containers coupling
         cmd = "ps -fea | grep '%s' | grep 'ompi-server' | grep -v 'grep' | awk '{print $2}'" % user
         prc = commands.getoutput(cmd)
         for field in prc.split():
@@ -101,8 +102,9 @@ def killAllPorts():
                 pass
             pass
         pass
+        # delete uri files needed by ompi-server
         cmd = "rm -f " + os.environ['HOME'] + "/.urifile_*"
-        commands.getoutput(cmd)
+        os.system(cmd)
     pass
 
 if __name__ == "__main__":