- Timestamp:
- 10/24/14 15:05:25 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_sys/libIGCM_sys_ada.ksh
r1101 r1121 321 321 fi 322 322 # keep standard input (stdin) for the loop onto temporary file 323 cat > /tmp/tmp_IGCM_sys_RshPost_$$_${LOGNAME}324 325 /bin/ksh < /tmp/tmp_IGCM_sys_RshPost_$$_${LOGNAME}323 cat >${RUN_DIR_PATH}/tmp_IGCM_sys_RshPost_$$_${LOGNAME} 324 325 /bin/ksh <${RUN_DIR_PATH}/tmp_IGCM_sys_RshPost_$$_${LOGNAME} 326 326 if [ $? -gt 0 ] ; then 327 327 echo "IGCM_sys_RshPost : erreur." … … 329 329 fi 330 330 # delete temporary file 331 \rm /tmp/tmp_IGCM_sys_RshPost_$$_${LOGNAME}331 \rm ${RUN_DIR_PATH}/tmp_IGCM_sys_RshPost_$$_${LOGNAME} 332 332 333 333 IGCM_debug_PopStack "IGCM_sys_RshPost" … … 761 761 -e "s:\# \@ error *= .*:\# \@ error = ${Script_Output}:" \ 762 762 $1 > ${REP_FOR_JOB}/JOB_FOR_IGCM 763 cd $REP_FOR_JOB ; /usr/bin/llsubmit JOB_FOR_IGCM > /tmp/out_command.$$ 2>&1 ; status=$? ; cd - ;764 765 cat /tmp/out_command.$$763 cd $REP_FOR_JOB ; /usr/bin/llsubmit JOB_FOR_IGCM > ${RUN_DIR_PATH}/out_command.$$ 2>&1 ; status=$? ; cd - ; 764 765 cat ${RUN_DIR_PATH}/out_command.$$ 766 766 if [ ${status} -gt 0 ] ; then 767 767 IGCM_debug_Print 2 "IGCM_sys_Qsub $1 : error code ${status}" 768 768 IGCM_debug_Exit "IGCM_sys_Qsub" 769 769 else 770 JobID=$( gawk {'print $4'} /tmp/out_command.$$ | tail -1 | sed -e s/\"//g )770 JobID=$( gawk {'print $4'} ${RUN_DIR_PATH}/out_command.$$ | tail -1 | sed -e s/\"//g ) 771 771 IGCM_sys_Rm ${REP_FOR_JOB}/JOB_FOR_IGCM 772 772 fi … … 938 938 mkdir -p ${HOME}/MIRROR/${PATHlibIGCM} 939 939 940 echo ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} > /tmp/out_command.$$ 2>&1941 ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} >> /tmp/out_command.$$ 2>&1940 echo ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} > ${RUN_DIR_PATH}/out_command.$$ 2>&1 941 ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} >> ${RUN_DIR_PATH}/out_command.$$ 2>&1 942 942 status=$? 943 943 944 944 if [ ${status} -gt 0 ] ; then 945 945 echo "IGCM_sys_Mirror_libIGCM Warning : no libIGCM on frontend." 946 cat /tmp/out_command.$$946 cat ${RUN_DIR_PATH}/out_command.$$ 947 947 fi 948 948 IGCM_debug_PopStack "IGCM_sys_Mirror_libIGCM" … … 962 962 typeset status 963 963 964 echo cp $@ > /tmp/out_command.$$ 2>&1965 \cp $@ >> /tmp/out_command.$$ 2>&1964 echo cp $@ > ${RUN_DIR_PATH}/out_command.$$ 2>&1 965 \cp $@ >> ${RUN_DIR_PATH}/out_command.$$ 2>&1 966 966 status=$? 967 967 968 968 if [ ${status} -gt 0 ] ; then 969 969 echo "IGCM_sys_Cp : error code ${status}" 970 cat /tmp/out_command.$$970 cat ${RUN_DIR_PATH}/out_command.$$ 971 971 IGCM_debug_Exit "IGCM_sys_Cp" 972 972 else 973 \rm /tmp/out_command.$$973 \rm ${RUN_DIR_PATH}/out_command.$$ 974 974 fi 975 975 IGCM_debug_PopStack "IGCM_sys_Cp" … … 1033 1033 typeset status 1034 1034 1035 echo mv $@ > /tmp/out_command.$$ 2>&11036 \mv $@ >> /tmp/out_command.$$ 2>&11035 echo mv $@ > ${RUN_DIR_PATH}/out_command.$$ 2>&1 1036 \mv $@ >> ${RUN_DIR_PATH}/out_command.$$ 2>&1 1037 1037 status=$? 1038 1038 1039 1039 if [ ${status} -gt 0 ] ; then 1040 1040 echo "IGCM_sys_Mv : error code ${status}" 1041 cat /tmp/out_command.$$1041 cat ${RUN_DIR_PATH}/out_command.$$ 1042 1042 IGCM_debug_Exit "IGCM_sys_Mv" 1043 1043 else 1044 \rm /tmp/out_command.$$1044 \rm ${RUN_DIR_PATH}/out_command.$$ 1045 1045 fi 1046 1046 fi … … 1074 1074 DEBUG_sys=false IGCM_sys_IsFileArchived $2 1075 1075 if [ $? = 0 ] ; then 1076 \rcp -r $1 ${STOREHOST}:$2 > /tmp/out_command.$$ 2>&11076 \rcp -r $1 ${STOREHOST}:$2 > ${RUN_DIR_PATH}/out_command.$$ 2>&1 1077 1077 status=$? 1078 1078 else 1079 \cp -r $1 $2 > /tmp/out_command.$$ 2>&11079 \cp -r $1 $2 > ${RUN_DIR_PATH}/out_command.$$ 2>&1 1080 1080 status=$? 1081 1081 fi … … 1083 1083 if [ ${status} -gt 0 ] ; then 1084 1084 IGCM_debug_Print 2 "IGCM_sys_Put_Dir : rcp or cp failed error code ${status}" 1085 cat /tmp/out_command.$$1085 cat ${RUN_DIR_PATH}/out_command.$$ 1086 1086 IGCM_debug_Exit "IGCM_sys_Put_Dir" 1087 1087 else 1088 \rm /tmp/out_command.$$1088 \rm ${RUN_DIR_PATH}/out_command.$$ 1089 1089 fi 1090 1090 fi … … 1125 1125 i=0 1126 1126 while [ $i -lt $NB_ESSAI ] ; do 1127 \rcp -rp ${STOREHOST}:$1 $2 > /tmp/out_command.$$ 2>&11127 \rcp -rp ${STOREHOST}:$1 $2 > ${RUN_DIR_PATH}/out_command.$$ 2>&1 1128 1128 status=$? 1129 1129 if [ ${status} -gt 0 ]; then … … 1137 1137 done 1138 1138 else 1139 \cp -rp $1 $2 > /tmp/out_command.$$ 2>&11139 \cp -rp $1 $2 > ${RUN_DIR_PATH}/out_command.$$ 2>&1 1140 1140 status=$? 1141 1141 if [ ${status} -gt 0 ] ; then 1142 1142 IGCM_debug_Print 2 "IGCM_sys_Get_Dir : cp failed error code ${status}" 1143 cat /tmp/out_command.$$1143 cat ${RUN_DIR_PATH}/out_command.$$ 1144 1144 IGCM_debug_Exit "IGCM_sys_Get_Dir" 1145 1145 else 1146 \rm /tmp/out_command.$$1146 \rm ${RUN_DIR_PATH}/out_command.$$ 1147 1147 fi 1148 1148 fi 1149 1149 if [ ${status} -gt 0 ] ; then 1150 1150 echo "IGCM_sys_Get_Dir : error." 1151 cat /tmp/out_command.$$1151 cat ${RUN_DIR_PATH}/out_command.$$ 1152 1152 IGCM_debug_Exit "IGCM_sys_Get_Dir" 1153 1153 else 1154 \rm /tmp/out_command.$$1154 \rm ${RUN_DIR_PATH}/out_command.$$ 1155 1155 fi 1156 1156 fi … … 1183 1183 i=0 1184 1184 while [ $i -lt $NB_ESSAI ] ; do 1185 \cp -urL $1 $2 > /tmp/out_command.$$ 2>&11185 \cp -urL $1 $2 > ${RUN_DIR_PATH}/out_command.$$ 2>&1 1186 1186 status=$? 1187 1187 if [ ${status} -gt 0 ]; then … … 1197 1197 if [ ${status} -gt 0 ] ; then 1198 1198 echo "IGCM_sys_Get_Master : error." 1199 cat /tmp/out_command.$$1199 cat ${RUN_DIR_PATH}/out_command.$$ 1200 1200 IGCM_debug_Exit "IGCM_sys_Get_Master" 1201 1201 else 1202 \rm /tmp/out_command.$$1202 \rm ${RUN_DIR_PATH}/out_command.$$ 1203 1203 fi 1204 1204 fi … … 1239 1239 DEBUG_sys=false IGCM_sys_IsFileArchived $2 1240 1240 if [ $? = 0 ] ; then 1241 mfput $1 $2 > /tmp/out_command.$$ 2>&11241 mfput $1 $2 > ${RUN_DIR_PATH}/out_command.$$ 2>&1 1242 1242 status=$? 1243 1243 else 1244 1244 IGCM_sys_MkdirArchive $( dirname $2 ) 1245 \cp $1 $2 > /tmp/out_command.$$ 2>&11245 \cp $1 $2 > ${RUN_DIR_PATH}/out_command.$$ 2>&1 1246 1246 status=$? 1247 1247 fi … … 1249 1249 # #RSYNC WITH NETWORK RSH CALL 1250 1250 # IGCM_sys_MkdirArchive $( dirname $2 ) 1251 # echo ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${RUN_DIR}/$1 ${STOREHOST}:${2} > /tmp/out_command.$$ 2>&11252 # ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> /tmp/out_command.$$ 2>&11251 # echo ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${RUN_DIR}/$1 ${STOREHOST}:${2} > ${RUN_DIR_PATH}/out_command.$$ 2>&1 1252 # ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> ${RUN_DIR_PATH}/out_command.$$ 2>&1 1253 1253 1254 1254 # #RSYNC WITH NFS USE 1255 # echo ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} > /tmp/out_command.$$ 2>&11256 # ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> /tmp/out_command.$$ 2>&11255 # echo ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} > ${RUN_DIR_PATH}/out_command.$$ 2>&1 1256 # ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> ${RUN_DIR_PATH}/out_command.$$ 2>&1 1257 1257 1258 1258 # status=$? 1259 1259 # IGCM_sys_Rsync_out $status 1260 1260 1261 # ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk /tmp/out_command.$$1261 # ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk ${RUN_DIR_PATH}/out_command.$$ 1262 1262 # (( status=status+$? )) 1263 1263 1264 1264 if [ ${status} -gt 0 ] ; then 1265 1265 echo "IGCM_sys_Put_Rest : mfput or cp failed error code ${status}" 1266 cat /tmp/out_command.$$1266 cat ${RUN_DIR_PATH}/out_command.$$ 1267 1267 IGCM_debug_Exit "IGCM_sys_Put_Rest" 1268 1268 else 1269 \rm /tmp/out_command.$$1269 \rm ${RUN_DIR_PATH}/out_command.$$ 1270 1270 fi 1271 1271 fi … … 1298 1298 # 1299 1299 # USUAL WAY 1300 \cp $1 $2 > /tmp/out_command.$$ 2>&11300 \cp $1 $2 > ${RUN_DIR_PATH}/out_command.$$ 2>&1 1301 1301 status=$? 1302 1302 … … 1305 1305 [ -f ${2} ] && ls -l ${2} 1306 1306 [ -f ${2}/${1} ] && ls -l ${2}/${1} 1307 cat /tmp/out_command.$$1307 cat ${RUN_DIR_PATH}/out_command.$$ 1308 1308 IGCM_debug_Exit "IGCM_sys_PutBuffer_Rest" 1309 1309 else 1310 \rm /tmp/out_command.$$1310 \rm ${RUN_DIR_PATH}/out_command.$$ 1311 1311 fi 1312 1312 fi … … 1358 1358 DEBUG_sys=false IGCM_sys_IsFileArchived $2 1359 1359 if [ $? = 0 ] ; then 1360 mfput $1 $2 > /tmp/out_command.$$ 2>&11360 mfput $1 $2 > ${RUN_DIR_PATH}/out_command.$$ 2>&1 1361 1361 status=$? 1362 1362 else 1363 1363 IGCM_sys_MkdirArchive $( dirname $2 ) 1364 \cp $1 $2 > /tmp/out_command.$$ 2>&11364 \cp $1 $2 > ${RUN_DIR_PATH}/out_command.$$ 2>&1 1365 1365 status=$? 1366 1366 fi … … 1368 1368 # #RSYNC WITH NETWORK RSH CALL 1369 1369 # IGCM_sys_MkdirArchive $( dirname $2 ) 1370 # echo ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${RUN_DIR}/$1 ${STOREHOST}:${2} > /tmp/out_command.$$ 2>&11371 # ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> /tmp/out_command.$$ 2>&11370 # echo ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${RUN_DIR}/$1 ${STOREHOST}:${2} > ${RUN_DIR_PATH}/out_command.$$ 2>&1 1371 # ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> ${RUN_DIR_PATH}/out_command.$$ 2>&1 1372 1372 1373 1373 # #RSYNC WITH NFS USE 1374 # echo ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} > /tmp/out_command.$$ 2>&11375 # ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> /tmp/out_command.$$ 2>&11374 # echo ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} > ${RUN_DIR_PATH}/out_command.$$ 2>&1 1375 # ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> ${RUN_DIR_PATH}/out_command.$$ 2>&1 1376 1376 1377 1377 # status=$? 1378 1378 # IGCM_sys_Rsync_out $status 1379 1379 1380 # ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk /tmp/out_command.$$1380 # ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk ${RUN_DIR_PATH}/out_command.$$ 1381 1381 # (( status=status+$? )) 1382 1382 1383 1383 if [ ${status} -gt 0 ] ; then 1384 1384 IGCM_debug_Print 2 "IGCM_sys_Put_Out : mfput or cp failed error code ${status}" 1385 cat /tmp/out_command.$$1385 cat ${RUN_DIR_PATH}/out_command.$$ 1386 1386 IGCM_debug_Exit "IGCM_sys_Put_Out" 1387 1387 else 1388 \rm /tmp/out_command.$$1388 \rm ${RUN_DIR_PATH}/out_command.$$ 1389 1389 fi 1390 1390 fi … … 1444 1444 while [ $i -lt $NB_ESSAI ] ; do 1445 1445 # USUAL WAY 1446 \cp $1 $2 > /tmp/out_command.$$ 2>&11446 \cp $1 $2 > ${RUN_DIR_PATH}/out_command.$$ 2>&1 1447 1447 status=$? 1448 1448 if [ ${status} -gt 0 ]; then … … 1463 1463 [ -f ${2} ] && ls -l ${2} 1464 1464 [ -f ${2}/${1} ] && ls -l ${2}/${1} 1465 cat /tmp/out_command.$$1465 cat ${RUN_DIR_PATH}/out_command.$$ 1466 1466 IGCM_debug_Exit "IGCM_sys_PutBuffer_Out" 1467 1467 else … … 1474 1474 fi 1475 1475 1476 \rm /tmp/out_command.$$1476 \rm ${RUN_DIR_PATH}/out_command.$$ 1477 1477 fi 1478 1478 fi … … 1521 1521 DEBUG_sys=false IGCM_sys_IsFileArchived ${dm_liste[0]} 1522 1522 if [ $? = 0 ] ; then 1523 mfget ${dm_liste[*]} ${DEST} > /tmp/out_command.$$ 2>&11523 mfget ${dm_liste[*]} ${DEST} > ${RUN_DIR_PATH}/out_command.$$ 2>&1 1524 1524 status=$? 1525 1525 else 1526 \cp ${dm_liste[*]} ${DEST} > /tmp/out_command.$$ 2>&11526 \cp ${dm_liste[*]} ${DEST} > ${RUN_DIR_PATH}/out_command.$$ 2>&1 1527 1527 status=$? 1528 1528 fi 1529 1529 1530 1530 # #RSYNC WITH NETWORK RSH CALL 1531 # echo ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${STOREHOST}:"${dm_liste}" ${STOREHOST}:${RUN_DIR}/${DEST} > /tmp/out_command.$$ 2>&11532 # ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${STOREHOST}:"${dm_liste}" ${STOREHOST}:${RUN_DIR}/${DEST} >> /tmp/out_command.$$ 2>&11531 # echo ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${STOREHOST}:"${dm_liste}" ${STOREHOST}:${RUN_DIR}/${DEST} > ${RUN_DIR_PATH}/out_command.$$ 2>&1 1532 # ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${STOREHOST}:"${dm_liste}" ${STOREHOST}:${RUN_DIR}/${DEST} >> ${RUN_DIR_PATH}/out_command.$$ 2>&1 1533 1533 1534 1534 # #RSYNC WITH NFS USE 1535 # echo ${RSYNC} ${RSYNC_opt} ${dm_liste} ${RUN_DIR}/${DEST} > /tmp/out_command.$$ 2>&11536 # ${RSYNC} ${RSYNC_opt} ${dm_liste} ${RUN_DIR}/${DEST} >> /tmp/out_command.$$ 2>&11535 # echo ${RSYNC} ${RSYNC_opt} ${dm_liste} ${RUN_DIR}/${DEST} > ${RUN_DIR_PATH}/out_command.$$ 2>&1 1536 # ${RSYNC} ${RSYNC_opt} ${dm_liste} ${RUN_DIR}/${DEST} >> ${RUN_DIR_PATH}/out_command.$$ 2>&1 1537 1537 1538 1538 # status=$? 1539 1539 # IGCM_sys_Rsync_out $status 1540 1540 1541 # ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk /tmp/out_command.$$1541 # ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk ${RUN_DIR_PATH}/out_command.$$ 1542 1542 # (( status=status+$? )) 1543 1543 1544 1544 if [ ${status} -gt 0 ] ; then 1545 1545 IGCM_debug_Print 2 "IGCM_sys_Get : mfget or cp failed error code ${status}" 1546 cat /tmp/out_command.$$1546 cat ${RUN_DIR_PATH}/out_command.$$ 1547 1547 IGCM_debug_Exit "IGCM_sys_Get" 1548 1548 else 1549 \rm /tmp/out_command.$$1549 \rm ${RUN_DIR_PATH}/out_command.$$ 1550 1550 fi 1551 1551 fi … … 1587 1587 i=0 1588 1588 while [ $i -lt $NB_ESSAI ] ; do 1589 \cp ${target} ${DEST}/${local_file} >> /tmp/out_command.$$ 2>&11589 \cp ${target} ${DEST}/${local_file} >> ${RUN_DIR_PATH}/out_command.$$ 2>&1 1590 1590 status=$? 1591 1591 if [ ${status} -gt 0 ]; then … … 1600 1600 if [ ${status} -gt 0 ] ; then 1601 1601 echo "IGCM_sys_Get : error" 1602 cat /tmp/out_command.$$1603 \rm /tmp/out_command.$$1602 cat ${RUN_DIR_PATH}/out_command.$$ 1603 \rm ${RUN_DIR_PATH}/out_command.$$ 1604 1604 IGCM_debug_Exit "IGCM_sys_GetBuffer" 1605 1605 else 1606 \rm /tmp/out_command.$$1606 \rm ${RUN_DIR_PATH}/out_command.$$ 1607 1607 fi 1608 1608 done … … 1610 1610 i=0 1611 1611 while [ $i -lt $NB_ESSAI ] ; do 1612 \cp ${buf_liste} ${DEST} >> /tmp/out_command.$$ 2>&11612 \cp ${buf_liste} ${DEST} >> ${RUN_DIR_PATH}/out_command.$$ 2>&1 1613 1613 status=$? 1614 1614 if [ ${status} -gt 0 ]; then … … 1623 1623 if [ ${status} -gt 0 ] ; then 1624 1624 echo "IGCM_sys_Get : error" 1625 cat /tmp/out_command.$$1626 \rm /tmp/out_command.$$1625 cat ${RUN_DIR_PATH}/out_command.$$ 1626 \rm ${RUN_DIR_PATH}/out_command.$$ 1627 1627 IGCM_debug_Exit "IGCM_sys_GetBuffer" 1628 1628 else 1629 \rm /tmp/out_command.$$1629 \rm ${RUN_DIR_PATH}/out_command.$$ 1630 1630 fi 1631 1631 fi … … 1768 1768 i=0 1769 1769 while [ $i -lt $NB_ESSAI ] ; do 1770 /smphome/rech/psl/rpsl035/bin/rebuild -f -o $@ > /tmp/out_command.$$ 2>&11770 /smphome/rech/psl/rpsl035/bin/rebuild -f -o $@ > ${RUN_DIR_PATH}/out_command.$$ 2>&1 1771 1771 status=$? 1772 1772 if [ ${status} -gt 0 ] ; then 1773 1773 IGCM_debug_Print 2 "IGCM_sys_rebuild : error code ${status}" 1774 cat /tmp/out_command.$$1775 \rm /tmp/out_command.$$1774 cat ${RUN_DIR_PATH}/out_command.$$ 1775 \rm ${RUN_DIR_PATH}/out_command.$$ 1776 1776 IGCM_debug_Print 2 "IGCM_sys_rebuild : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 1777 1777 firstArg=${1} … … 1779 1779 sleep $DELAI 1780 1780 else 1781 \rm /tmp/out_command.$$1781 \rm ${RUN_DIR_PATH}/out_command.$$ 1782 1782 break 1783 1783 fi … … 2248 2248 i=0 2249 2249 while [ $i -lt $NB_ESSAI ] ; do 2250 ncap2 -C "$@" > /tmp/out_command.$$ 2>&12250 ncap2 -C "$@" > ${RUN_DIR_PATH}/out_command.$$ 2>&1 2251 2251 status=$? 2252 2252 if [ ${status} -gt 0 ] ; then 2253 2253 IGCM_debug_Print 2 "IGCM_sys_ncap2 : error code ${status}" 2254 cat /tmp/out_command.$$2255 \rm /tmp/out_command.$$2254 cat ${RUN_DIR_PATH}/out_command.$$ 2255 \rm ${RUN_DIR_PATH}/out_command.$$ 2256 2256 IGCM_debug_Print 2 "IGCM_sys_ncap2 : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2257 2257 sleep $DELAI 2258 2258 else 2259 \rm /tmp/out_command.$$2259 \rm ${RUN_DIR_PATH}/out_command.$$ 2260 2260 break 2261 2261 fi … … 2290 2290 i=0 2291 2291 while [ $i -lt $NB_ESSAI ] ; do 2292 ncatted "$@" > /tmp/out_command.$$ 2>&12292 ncatted "$@" > ${RUN_DIR_PATH}/out_command.$$ 2>&1 2293 2293 status=$? 2294 2294 if [ ${status} -gt 0 ] ; then 2295 2295 IGCM_debug_Print 2 "IGCM_sys_ncatted : error code ${status}" 2296 cat /tmp/out_command.$$2297 \rm /tmp/out_command.$$2296 cat ${RUN_DIR_PATH}/out_command.$$ 2297 \rm ${RUN_DIR_PATH}/out_command.$$ 2298 2298 IGCM_debug_Print 2 "IGCM_sys_ncatted : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2299 2299 sleep $DELAI 2300 2300 else 2301 \rm /tmp/out_command.$$2301 \rm ${RUN_DIR_PATH}/out_command.$$ 2302 2302 break 2303 2303 fi … … 2332 2332 i=0 2333 2333 while [ $i -lt $NB_ESSAI ] ; do 2334 ncbo -C $@ > /tmp/out_command.$$ 2>&12334 ncbo -C $@ > ${RUN_DIR_PATH}/out_command.$$ 2>&1 2335 2335 status=$? 2336 2336 if [ ${status} -gt 0 ] ; then 2337 2337 IGCM_debug_Print 2 "IGCM_sys_ncbo : error code ${status}" 2338 cat /tmp/out_command.$$2339 \rm /tmp/out_command.$$2338 cat ${RUN_DIR_PATH}/out_command.$$ 2339 \rm ${RUN_DIR_PATH}/out_command.$$ 2340 2340 IGCM_debug_Print 2 "IGCM_sys_ncbo : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2341 2341 sleep $DELAI 2342 2342 else 2343 \rm /tmp/out_command.$$2343 \rm ${RUN_DIR_PATH}/out_command.$$ 2344 2344 break 2345 2345 fi … … 2374 2374 i=0 2375 2375 while [ $i -lt $NB_ESSAI ] ; do 2376 ncdiff -C $@ > /tmp/out_command.$$ 2>&12376 ncdiff -C $@ > ${RUN_DIR_PATH}/out_command.$$ 2>&1 2377 2377 status=$? 2378 2378 if [ ${status} -gt 0 ] ; then 2379 2379 IGCM_debug_Print 2 "IGCM_sys_ncdiff : error code ${status}" 2380 cat /tmp/out_command.$$2381 \rm /tmp/out_command.$$2380 cat ${RUN_DIR_PATH}/out_command.$$ 2381 \rm ${RUN_DIR_PATH}/out_command.$$ 2382 2382 IGCM_debug_Print 2 "IGCM_sys_ncdiff : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2383 2383 sleep $DELAI 2384 2384 else 2385 \rm /tmp/out_command.$$2385 \rm ${RUN_DIR_PATH}/out_command.$$ 2386 2386 break 2387 2387 fi … … 2416 2416 i=0 2417 2417 while [ $i -lt $NB_ESSAI ] ; do 2418 ncea -C $@ > /tmp/out_command.$$ 2>&12418 ncea -C $@ > ${RUN_DIR_PATH}/out_command.$$ 2>&1 2419 2419 status=$? 2420 2420 if [ ${status} -gt 0 ] ; then 2421 2421 IGCM_debug_Print 2 "IGCM_sys_ncea : error code ${status}" 2422 cat /tmp/out_command.$$2423 \rm /tmp/out_command.$$2422 cat ${RUN_DIR_PATH}/out_command.$$ 2423 \rm ${RUN_DIR_PATH}/out_command.$$ 2424 2424 IGCM_debug_Print 2 "IGCM_sys_ncea : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2425 2425 sleep $DELAI 2426 2426 else 2427 \rm /tmp/out_command.$$2427 \rm ${RUN_DIR_PATH}/out_command.$$ 2428 2428 break 2429 2429 fi … … 2458 2458 i=0 2459 2459 while [ $i -lt $NB_ESSAI ] ; do 2460 ncecat -C $@ > /tmp/out_command.$$ 2>&12460 ncecat -C $@ > ${RUN_DIR_PATH}/out_command.$$ 2>&1 2461 2461 status=$? 2462 2462 if [ ${status} -gt 0 ] ; then 2463 2463 IGCM_debug_Print 2 "IGCM_sys_ncecat : error code ${status}" 2464 cat /tmp/out_command.$$2465 \rm /tmp/out_command.$$2464 cat ${RUN_DIR_PATH}/out_command.$$ 2465 \rm ${RUN_DIR_PATH}/out_command.$$ 2466 2466 IGCM_debug_Print 2 "IGCM_sys_ncecat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2467 2467 sleep $DELAI 2468 2468 else 2469 \rm /tmp/out_command.$$2469 \rm ${RUN_DIR_PATH}/out_command.$$ 2470 2470 break 2471 2471 fi … … 2500 2500 i=0 2501 2501 while [ $i -lt $NB_ESSAI ] ; do 2502 ncflint -C $@ > /tmp/out_command.$$ 2>&12502 ncflint -C $@ > ${RUN_DIR_PATH}/out_command.$$ 2>&1 2503 2503 status=$? 2504 2504 if [ ${status} -gt 0 ] ; then 2505 2505 IGCM_debug_Print 2 "IGCM_sys_ncflint : error code ${status}" 2506 cat /tmp/out_command.$$2507 \rm /tmp/out_command.$$2506 cat ${RUN_DIR_PATH}/out_command.$$ 2507 \rm ${RUN_DIR_PATH}/out_command.$$ 2508 2508 IGCM_debug_Print 2 "IGCM_sys_ncflint : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2509 2509 sleep $DELAI 2510 2510 else 2511 \rm /tmp/out_command.$$2511 \rm ${RUN_DIR_PATH}/out_command.$$ 2512 2512 break 2513 2513 fi … … 2542 2542 i=0 2543 2543 while [ $i -lt $NB_ESSAI ] ; do 2544 ncks -C $@ > /tmp/out_command.$$ 2>&12544 ncks -C $@ > ${RUN_DIR_PATH}/out_command.$$ 2>&1 2545 2545 status=$? 2546 2546 if [ ${status} -gt 0 ] ; then 2547 2547 IGCM_debug_Print 2 "IGCM_sys_ncks : error code ${status}" 2548 cat /tmp/out_command.$$2549 \rm /tmp/out_command.$$2548 cat ${RUN_DIR_PATH}/out_command.$$ 2549 \rm ${RUN_DIR_PATH}/out_command.$$ 2550 2550 IGCM_debug_Print 2 "IGCM_sys_ncks : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2551 2551 sleep $DELAI 2552 2552 else 2553 \rm /tmp/out_command.$$2553 \rm ${RUN_DIR_PATH}/out_command.$$ 2554 2554 break 2555 2555 fi … … 2584 2584 i=0 2585 2585 while [ $i -lt $NB_ESSAI ] ; do 2586 ncpdq -C $@ > /tmp/out_command.$$ 2>&12586 ncpdq -C $@ > ${RUN_DIR_PATH}/out_command.$$ 2>&1 2587 2587 status=$? 2588 2588 if [ ${status} -gt 0 ] ; then 2589 2589 IGCM_debug_Print 2 "IGCM_sys_ncpdq : error code ${status}" 2590 cat /tmp/out_command.$$2591 \rm /tmp/out_command.$$2590 cat ${RUN_DIR_PATH}/out_command.$$ 2591 \rm ${RUN_DIR_PATH}/out_command.$$ 2592 2592 IGCM_debug_Print 2 "IGCM_sys_ncpdq : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2593 2593 sleep $DELAI 2594 2594 else 2595 \rm /tmp/out_command.$$2595 \rm ${RUN_DIR_PATH}/out_command.$$ 2596 2596 break 2597 2597 fi … … 2626 2626 i=0 2627 2627 while [ $i -lt $NB_ESSAI ] ; do 2628 ncra -C $@ > /tmp/out_command.$$ 2>&12628 ncra -C $@ > ${RUN_DIR_PATH}/out_command.$$ 2>&1 2629 2629 status=$? 2630 2630 if [ ${status} -gt 0 ] ; then 2631 2631 IGCM_debug_Print 2 "IGCM_sys_ncra : error code ${status}" 2632 cat /tmp/out_command.$$2633 \rm /tmp/out_command.$$2632 cat ${RUN_DIR_PATH}/out_command.$$ 2633 \rm ${RUN_DIR_PATH}/out_command.$$ 2634 2634 IGCM_debug_Print 2 "IGCM_sys_ncra : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2635 2635 sleep $DELAI 2636 2636 else 2637 \rm /tmp/out_command.$$2637 \rm ${RUN_DIR_PATH}/out_command.$$ 2638 2638 break 2639 2639 fi … … 2668 2668 i=0 2669 2669 while [ $i -lt $NB_ESSAI ] ; do 2670 ncrcat -C $@ > /tmp/out_command.$$ 2>&12670 ncrcat -C $@ > ${RUN_DIR_PATH}/out_command.$$ 2>&1 2671 2671 status=$? 2672 2672 if [ ${status} -gt 0 ] ; then 2673 2673 IGCM_debug_Print 2 "IGCM_sys_ncrcat : error code ${status}" 2674 cat /tmp/out_command.$$2675 \rm /tmp/out_command.$$2674 cat ${RUN_DIR_PATH}/out_command.$$ 2675 \rm ${RUN_DIR_PATH}/out_command.$$ 2676 2676 IGCM_debug_Print 2 "IGCM_sys_ncrcat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2677 2677 sleep $DELAI 2678 elif [ ! "X$( grep "WARNING Intra-file non-monotonicity" /tmp/out_command.$$ )" = "X" ] ; then2678 elif [ ! "X$( grep "WARNING Intra-file non-monotonicity" ${RUN_DIR_PATH}/out_command.$$ )" = "X" ] ; then 2679 2679 IGCM_debug_Print 2 "IGCM_sys_ncrcat : WARNING Intra-file non-monotonicity" 2680 cat /tmp/out_command.$$2680 cat ${RUN_DIR_PATH}/out_command.$$ 2681 2681 # remove files having corrupted time axis 2682 2682 eval lastArg=\${$#} 2683 2683 IGCM_debug_Print 2 "IGCM_sys_ncrcat : Delete ${lastArg}" 2684 2684 \rm ${lastArg} 2685 \rm /tmp/out_command.$$2685 \rm ${RUN_DIR_PATH}/out_command.$$ 2686 2686 IGCM_debug_Print 2 "IGCM_sys_ncrcat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2687 2687 sleep $DELAI 2688 2688 else 2689 \rm /tmp/out_command.$$2689 \rm ${RUN_DIR_PATH}/out_command.$$ 2690 2690 break 2691 2691 fi … … 2720 2720 i=0 2721 2721 while [ $i -lt $NB_ESSAI ] ; do 2722 ncrename $@ > /tmp/out_command.$$ 2>&12722 ncrename $@ > ${RUN_DIR_PATH}/out_command.$$ 2>&1 2723 2723 status=$? 2724 2724 if [ ${status} -gt 0 ] ; then 2725 2725 IGCM_debug_Print 2 "IGCM_sys_ncrename : error code ${status}" 2726 cat /tmp/out_command.$$2727 \rm /tmp/out_command.$$2726 cat ${RUN_DIR_PATH}/out_command.$$ 2727 \rm ${RUN_DIR_PATH}/out_command.$$ 2728 2728 IGCM_debug_Print 2 "IGCM_sys_ncrename : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2729 2729 sleep $DELAI 2730 2730 else 2731 \rm /tmp/out_command.$$2731 \rm ${RUN_DIR_PATH}/out_command.$$ 2732 2732 break 2733 2733 fi … … 2762 2762 i=0 2763 2763 while [ $i -lt $NB_ESSAI ] ; do 2764 ncwa -C $@ > /tmp/out_command.$$ 2>&12764 ncwa -C $@ > ${RUN_DIR_PATH}/out_command.$$ 2>&1 2765 2765 status=$? 2766 2766 if [ ${status} -gt 0 ] ; then 2767 2767 IGCM_debug_Print 2 "IGCM_sys_ncwa : error code ${status}" 2768 cat /tmp/out_command.$$2769 \rm /tmp/out_command.$$2768 cat ${RUN_DIR_PATH}/out_command.$$ 2769 \rm ${RUN_DIR_PATH}/out_command.$$ 2770 2770 IGCM_debug_Print 2 "IGCM_sys_ncwa : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2771 2771 sleep $DELAI 2772 2772 else 2773 \rm /tmp/out_command.$$2773 \rm ${RUN_DIR_PATH}/out_command.$$ 2774 2774 break 2775 2775 fi … … 2801 2801 typeset status 2802 2802 2803 \cdo $@ > /tmp/out_command.$$ 2>&12803 \cdo $@ > ${RUN_DIR_PATH}/out_command.$$ 2>&1 2804 2804 status=$? 2805 2805 if [ ${status} -gt 0 ] ; then 2806 2806 echo "IGCM_sys_cdo : error code ${status}" 2807 cat /tmp/out_command.$$2808 \rm /tmp/out_command.$$2807 cat ${RUN_DIR_PATH}/out_command.$$ 2808 \rm ${RUN_DIR_PATH}/out_command.$$ 2809 2809 IGCM_debug_PopStack "IGCM_sys_cdo" 2810 2810 return 1
Note: See TracChangeset
for help on using the changeset viewer.