if USER is None:
USER='anonymous'
LOGDIR="/tmp/logs/" + USER
- os.system("mkdir -m 777 -p " + LOGDIR)
+ os.system("mkdir -m 755 -p " + LOGDIR)
CMD="runNS.sh > " + LOGDIR + "/salomeNS.log 2>&1"
# -----------------------------------------------------------------------------
# clear log files
-mkdir -m 775 ${BaseDir}/logs
-mkdir ${BaseDir}/logs/${Username}
+mkdir -p ${BaseDir}/logs/${Username}
touch ${BaseDir}/logs/${Username}/dummy
\rm -f ${BaseDir}/logs/${Username}/omninames* ${BaseDir}/logs/${Username}/dummy ${BaseDir}/logs/${Username}/*.log
os.environ["SALOMEPATH"]=":".join(modules_root_dir.values())
if "SUPERV" in liste_modules:with_container_superv=1
+os.system("mkdir -m 777 -p /tmp/logs")
+if os.access('/tmp/logs', os.W_OK) == 0:
+ print """
+Cannot put log files in /tmp/logs.
+Check existence and write permission of /tmp/logs directory
+"""
+ sys.exit(1)
# -----------------------------------------------------------------------------
#