Salome HOME
projects
/
modules
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7cc10b
)
PAL10873: Debian: HOSTNAME settings. A patch by Paul RASCLE.
author
jfa
<jfa@opencascade.com>
Tue, 13 Dec 2005 14:25:20 +0000
(14:25 +0000)
committer
jfa
<jfa@opencascade.com>
Tue, 13 Dec 2005 14:25:20 +0000
(14:25 +0000)
bin/killSalomeWithPort.py
patch
|
blob
|
history
diff --git
a/bin/killSalomeWithPort.py
b/bin/killSalomeWithPort.py
index 221ba981e30791ffa5983c48b3f6683bf91f7c8d..bb71dc2f60f69707c21460df58b6870c05a454a3 100755
(executable)
--- a/
bin/killSalomeWithPort.py
+++ b/
bin/killSalomeWithPort.py
@@
-2,6
+2,14
@@
import os, sys, pickle, signal, commands
def getPiDict(port,appname='salome',full=True):
+ from Utils_Identity import getShortHostName
+
+ if os.getenv("HOSTNAME") == None:
+ if os.getenv("HOST") == None:
+ os.environ["HOSTNAME"]=getShortHostName()
+ else:
+ os.environ["HOSTNAME"]=os.getenv("HOST")
+
filedict = []
filedict.append( os.getenv('USER') ) # user name
filedict.append( os.getenv('HOSTNAME') ) # host name