pid = commands.getoutput("ps -eo pid,command | egrep \"[0-9] omniNames -start "+str(port)+"\" | sed -e \"s%[^0-9]*\([0-9]*\) .*%\\1%g\"")
-if sys.argv[0] == "killSalomeWithPort.py":
+if __name__ == "__main__":
for port in sys.argv[1:]:
killMyPort(port)
#
# $: ${KERNEL_ROOT_DIR}/bin/salome/runSalome --modules=GEOM,SMESH,VISU,SUPERV,MED --embedded=registry,study,moduleCatalog,cppContainer --standalone=pyContainer,supervContainer --xterm --killall
#
-# parameter from command line supersedes thoses from $HOME/.salome/salome.launch
+# parameters from command line supersede those from $HOME/.salome/salome.launch
#
# Some CORBA servers could be launched in the SALOME_Session_Server
# (embedded = same process) or in a separate process (standalone):