Opened 11 years ago

Closed 11 years ago

#111 closed defect (fixed)

RUN_DIR_PATH at obelix

Reported by: jgipsl Owned by: jgipsl
Priority: major Milestone: libIGCM_v2.0
Component: system Version:
Keywords: Cc:

Description

Pour certain cas (ORCHIDEE_OL/FLUXNET) on lance des jobs en interactive. Du coup les variables $PBS_O_LOGNAME et $PBS_JOBID ne sont pas définis.

Avant dans trunk rev 799, dans libIGCM_sys_obelix.ksh, on avait le suivant pour contourner cette problème :

if [ X${PBS_O_LOGNAME} != X ] ; then
  typeset -r SCRATCHDIR=/scratch/$PBS_O_LOGNAME.$PBS_JOBID
#==${WORKDIR}
# cf /usr/Local/Env sur obelix
else
  typeset -r SCRATCHDIR=/tmp
fi
...
typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=${SCRATCHDIR}/tmp$$}

Maintenant trunk rev 819, ca ne fonctionne pas pour ce cas spécifique (depuis rev 800). On a :

typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=/scratch/$PBS_O_LOGNAME.$PBS_JOBID}

Proposition de modification (en cours de test) :

if [ X${PBS_O_WORKDIR} != X ] ; then
  typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=/scratch/$PBS_O_LOGNAME.$PBS_JOBID}
else
  typeset -r RUN_DIR_PATH=/tmp
# ou typeset -r RUN_DIR_PATH=/tmp/tmp$$
# ou typeset -r RUN_DIR_PATH=/scratch/tmp$$
fi

Change History (2)

comment:1 Changed 11 years ago by sdipsl

  • Milestone set to libIGCM_v2.0

le choix le plus simple serait peut-être :
typeset -r RUN_DIR_PATH=/tmp/tmp$$

comment:2 Changed 11 years ago by sdipsl

  • Resolution set to fixed
  • Status changed from new to closed

Done see r838

Note: See TracTickets for help on using tickets.