Changeset 938 for trunk/libIGCM/libIGCM_sys/libIGCM_sys_ada.ksh
- Timestamp:
- 08/23/13 11:38:14 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_sys/libIGCM_sys_ada.ksh
r936 r938 824 824 mkdir -p ${HOME}/MIRROR/${PATHlibIGCM} 825 825 826 echo ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} > out_rsync2>&1827 ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} >> out_rsync2>&1826 echo ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} > /tmp/out_command.$$ 2>&1 827 ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} >> /tmp/out_command.$$ 2>&1 828 828 status=$? 829 829 830 830 if [ ${status} -gt 0 ] ; then 831 831 echo "IGCM_sys_Mirror_libIGCM Warning : no libIGCM on frontend." 832 cat out_rsync832 cat /tmp/out_command.$$ 833 833 fi 834 834 IGCM_debug_PopStack "IGCM_sys_Mirror_libIGCM" … … 848 848 typeset status 849 849 850 echo cp $@ > out_rsync2>&1851 \cp $@ >> out_rsync2>&1850 echo cp $@ > /tmp/out_command.$$ 2>&1 851 \cp $@ >> /tmp/out_command.$$ 2>&1 852 852 status=$? 853 853 854 854 if [ ${status} -gt 0 ] ; then 855 855 echo "IGCM_sys_Cp : error code ${status}" 856 cat out_rsync856 cat /tmp/out_command.$$ 857 857 IGCM_debug_Exit "IGCM_sys_Cp" 858 858 else 859 \rm out_rsync859 \rm /tmp/out_command.$$ 860 860 fi 861 861 IGCM_debug_PopStack "IGCM_sys_Cp" … … 875 875 typeset status 876 876 877 echo rm $@ > out_rsync2>&1878 \rm $@ >> out_rsync2>&1877 echo rm $@ > /tmp/out_command.$$ 2>&1 878 \rm $@ >> /tmp/out_command.$$ 2>&1 879 879 status=$? 880 880 881 881 if [ ${status} -gt 0 ] ; then 882 882 echo "IGCM_sys_Rm : error code ${status}" 883 cat out_rsync883 cat /tmp/out_command.$$ 884 884 IGCM_debug_Exit "IGCM_sys_Rm" 885 885 else 886 \rm out_rsync886 \rm /tmp/out_command.$$ 887 887 fi 888 888 IGCM_debug_PopStack "IGCM_sys_Rm" … … 919 919 typeset status 920 920 921 echo mv $@ > out_rsync2>&1922 \mv $@ >> out_rsync2>&1921 echo mv $@ > /tmp/out_command.$$ 2>&1 922 \mv $@ >> /tmp/out_command.$$ 2>&1 923 923 status=$? 924 924 925 925 if [ ${status} -gt 0 ] ; then 926 926 echo "IGCM_sys_Mv : error code ${status}" 927 cat out_rsync927 cat /tmp/out_command.$$ 928 928 IGCM_debug_Exit "IGCM_sys_Mv" 929 929 else 930 \rm out_rsync930 \rm /tmp/out_command.$$ 931 931 fi 932 932 fi … … 960 960 DEBUG_sys=false IGCM_sys_IsFileArchived $2 961 961 if [ $? = 0 ] ; then 962 \rcp -r $1 ${STOREHOST}:$2 > out_rsync2>&1962 \rcp -r $1 ${STOREHOST}:$2 > /tmp/out_command.$$ 2>&1 963 963 status=$? 964 964 else 965 \cp -r $1 $2 > out_rsync2>&1965 \cp -r $1 $2 > /tmp/out_command.$$ 2>&1 966 966 status=$? 967 967 fi … … 969 969 if [ ${status} -gt 0 ] ; then 970 970 IGCM_debug_Print 2 "IGCM_sys_Put_Dir : rcp or cp failed error code ${status}" 971 cat out_rsync971 cat /tmp/out_command.$$ 972 972 IGCM_debug_Exit "IGCM_sys_Put_Dir" 973 973 else 974 \rm out_rsync974 \rm /tmp/out_command.$$ 975 975 fi 976 976 fi … … 1011 1011 i=0 1012 1012 while [ $i -lt $NB_ESSAI ] ; do 1013 \rcp -rp ${STOREHOST}:$1 $2 > out_rsync2>&11013 \rcp -rp ${STOREHOST}:$1 $2 > /tmp/out_command.$$ 2>&1 1014 1014 status=$? 1015 1015 if [ ${status} -gt 0 ]; then … … 1023 1023 done 1024 1024 else 1025 \cp -rp $1 $2 > out_rsync2>&11025 \cp -rp $1 $2 > /tmp/out_command.$$ 2>&1 1026 1026 status=$? 1027 1027 if [ ${status} -gt 0 ] ; then 1028 1028 IGCM_debug_Print 2 "IGCM_sys_Get_Dir : cp failed error code ${status}" 1029 cat out_rsync1029 cat /tmp/out_command.$$ 1030 1030 IGCM_debug_Exit "IGCM_sys_Get_Dir" 1031 1031 else 1032 \rm out_rsync1032 \rm /tmp/out_command.$$ 1033 1033 fi 1034 1034 fi 1035 1035 if [ ${status} -gt 0 ] ; then 1036 1036 echo "IGCM_sys_Get_Dir : error." 1037 cat out_rsync1037 cat /tmp/out_command.$$ 1038 1038 IGCM_debug_Exit "IGCM_sys_Get_Dir" 1039 1039 else 1040 \rm out_rsync1040 \rm /tmp/out_command.$$ 1041 1041 fi 1042 1042 fi … … 1069 1069 i=0 1070 1070 while [ $i -lt $NB_ESSAI ] ; do 1071 \cp -urL $1 $2 > out_rsync2>&11071 \cp -urL $1 $2 > /tmp/out_command.$$ 2>&1 1072 1072 status=$? 1073 1073 if [ ${status} -gt 0 ]; then … … 1083 1083 if [ ${status} -gt 0 ] ; then 1084 1084 echo "IGCM_sys_Get_Master : error." 1085 cat out_rsync1085 cat /tmp/out_command.$$ 1086 1086 IGCM_debug_Exit "IGCM_sys_Get_Master" 1087 1087 else 1088 \rm out_rsync1088 \rm /tmp/out_command.$$ 1089 1089 fi 1090 1090 fi … … 1125 1125 DEBUG_sys=false IGCM_sys_IsFileArchived $2 1126 1126 if [ $? = 0 ] ; then 1127 mfput $1 $2 > out_rsync2>&11127 mfput $1 $2 > /tmp/out_command.$$ 2>&1 1128 1128 status=$? 1129 1129 else 1130 1130 IGCM_sys_MkdirArchive $( dirname $2 ) 1131 \cp $1 $2 > out_rsync2>&11131 \cp $1 $2 > /tmp/out_command.$$ 2>&1 1132 1132 status=$? 1133 1133 fi … … 1135 1135 # #RSYNC WITH NETWORK RSH CALL 1136 1136 # IGCM_sys_MkdirArchive $( dirname $2 ) 1137 # echo ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${RUN_DIR}/$1 ${STOREHOST}:${2} > out_rsync2>&11138 # ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> out_rsync2>&11137 # echo ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${RUN_DIR}/$1 ${STOREHOST}:${2} > /tmp/out_command.$$ 2>&1 1138 # ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> /tmp/out_command.$$ 2>&1 1139 1139 1140 1140 # #RSYNC WITH NFS USE 1141 # echo ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} > out_rsync2>&11142 # ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> out_rsync2>&11141 # echo ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} > /tmp/out_command.$$ 2>&1 1142 # ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> /tmp/out_command.$$ 2>&1 1143 1143 1144 1144 # status=$? 1145 1145 # IGCM_sys_Rsync_out $status 1146 1146 1147 # ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk out_rsync1147 # ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk /tmp/out_command.$$ 1148 1148 # (( status=status+$? )) 1149 1149 1150 1150 if [ ${status} -gt 0 ] ; then 1151 1151 echo "IGCM_sys_Put_Rest : mfput or cp failed error code ${status}" 1152 cat out_rsync1152 cat /tmp/out_command.$$ 1153 1153 IGCM_debug_Exit "IGCM_sys_Put_Rest" 1154 1154 else 1155 \rm out_rsync1155 \rm /tmp/out_command.$$ 1156 1156 fi 1157 1157 fi … … 1184 1184 # 1185 1185 # USUAL WAY 1186 \cp $1 $2 > out_rsync2>&11186 \cp $1 $2 > /tmp/out_command.$$ 2>&1 1187 1187 status=$? 1188 1188 … … 1191 1191 [ -f ${2} ] && ls -l ${2} 1192 1192 [ -f ${2}/${1} ] && ls -l ${2}/${1} 1193 cat out_rsync1193 cat /tmp/out_command.$$ 1194 1194 IGCM_debug_Exit "IGCM_sys_PutBuffer_Rest" 1195 1195 else 1196 \rm out_rsync1196 \rm /tmp/out_command.$$ 1197 1197 fi 1198 1198 fi … … 1244 1244 DEBUG_sys=false IGCM_sys_IsFileArchived $2 1245 1245 if [ $? = 0 ] ; then 1246 mfput $1 $2 > out_rsync2>&11246 mfput $1 $2 > /tmp/out_command.$$ 2>&1 1247 1247 status=$? 1248 1248 else 1249 1249 IGCM_sys_MkdirArchive $( dirname $2 ) 1250 \cp $1 $2 > out_rsync2>&11250 \cp $1 $2 > /tmp/out_command.$$ 2>&1 1251 1251 status=$? 1252 1252 fi … … 1254 1254 # #RSYNC WITH NETWORK RSH CALL 1255 1255 # IGCM_sys_MkdirArchive $( dirname $2 ) 1256 # echo ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${RUN_DIR}/$1 ${STOREHOST}:${2} > out_rsync2>&11257 # ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> out_rsync2>&11256 # echo ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${RUN_DIR}/$1 ${STOREHOST}:${2} > /tmp/out_command.$$ 2>&1 1257 # ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> /tmp/out_command.$$ 2>&1 1258 1258 1259 1259 # #RSYNC WITH NFS USE 1260 # echo ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} > out_rsync2>&11261 # ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> out_rsync2>&11260 # echo ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} > /tmp/out_command.$$ 2>&1 1261 # ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> /tmp/out_command.$$ 2>&1 1262 1262 1263 1263 # status=$? 1264 1264 # IGCM_sys_Rsync_out $status 1265 1265 1266 # ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk out_rsync1266 # ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk /tmp/out_command.$$ 1267 1267 # (( status=status+$? )) 1268 1268 1269 1269 if [ ${status} -gt 0 ] ; then 1270 1270 IGCM_debug_Print 2 "IGCM_sys_Put_Out : mfput or cp failed error code ${status}" 1271 cat out_rsync1271 cat /tmp/out_command.$$ 1272 1272 IGCM_debug_Exit "IGCM_sys_Put_Out" 1273 1273 else 1274 \rm out_rsync1274 \rm /tmp/out_command.$$ 1275 1275 fi 1276 1276 fi … … 1330 1330 while [ $i -lt $NB_ESSAI ] ; do 1331 1331 # USUAL WAY 1332 \cp $1 $2 > out_rsync2>&11332 \cp $1 $2 > /tmp/out_command.$$ 2>&1 1333 1333 status=$? 1334 1334 if [ ${status} -gt 0 ]; then … … 1349 1349 [ -f ${2} ] && ls -l ${2} 1350 1350 [ -f ${2}/${1} ] && ls -l ${2}/${1} 1351 cat out_rsync1351 cat /tmp/out_command.$$ 1352 1352 IGCM_debug_Exit "IGCM_sys_PutBuffer_Out" 1353 1353 else … … 1360 1360 fi 1361 1361 1362 \rm out_rsync1362 \rm /tmp/out_command.$$ 1363 1363 fi 1364 1364 fi … … 1407 1407 DEBUG_sys=false IGCM_sys_IsFileArchived ${dm_liste[0]} 1408 1408 if [ $? = 0 ] ; then 1409 mfget ${dm_liste[*]} ${DEST} > out_rsync2>&11409 mfget ${dm_liste[*]} ${DEST} > /tmp/out_command.$$ 2>&1 1410 1410 status=$? 1411 1411 else 1412 \cp ${dm_liste[*]} ${DEST} > out_rsync2>&11412 \cp ${dm_liste[*]} ${DEST} > /tmp/out_command.$$ 2>&1 1413 1413 status=$? 1414 1414 fi 1415 1415 1416 1416 # #RSYNC WITH NETWORK RSH CALL 1417 # echo ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${STOREHOST}:"${dm_liste}" ${STOREHOST}:${RUN_DIR}/${DEST} > out_rsync2>&11418 # ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${STOREHOST}:"${dm_liste}" ${STOREHOST}:${RUN_DIR}/${DEST} >> out_rsync2>&11417 # echo ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${STOREHOST}:"${dm_liste}" ${STOREHOST}:${RUN_DIR}/${DEST} > /tmp/out_command.$$ 2>&1 1418 # ${RSYNC} ${RSYNC_opt} --rsync-path=${REMOTE_RSYNC} -e rsh ${STOREHOST}:"${dm_liste}" ${STOREHOST}:${RUN_DIR}/${DEST} >> /tmp/out_command.$$ 2>&1 1419 1419 1420 1420 # #RSYNC WITH NFS USE 1421 # echo ${RSYNC} ${RSYNC_opt} ${dm_liste} ${RUN_DIR}/${DEST} > out_rsync2>&11422 # ${RSYNC} ${RSYNC_opt} ${dm_liste} ${RUN_DIR}/${DEST} >> out_rsync2>&11421 # echo ${RSYNC} ${RSYNC_opt} ${dm_liste} ${RUN_DIR}/${DEST} > /tmp/out_command.$$ 2>&1 1422 # ${RSYNC} ${RSYNC_opt} ${dm_liste} ${RUN_DIR}/${DEST} >> /tmp/out_command.$$ 2>&1 1423 1423 1424 1424 # status=$? 1425 1425 # IGCM_sys_Rsync_out $status 1426 1426 1427 # ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk out_rsync1427 # ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk /tmp/out_command.$$ 1428 1428 # (( status=status+$? )) 1429 1429 1430 1430 if [ ${status} -gt 0 ] ; then 1431 1431 IGCM_debug_Print 2 "IGCM_sys_Get : mfget or cp failed error code ${status}" 1432 cat out_rsync1432 cat /tmp/out_command.$$ 1433 1433 IGCM_debug_Exit "IGCM_sys_Get" 1434 1434 else 1435 \rm out_rsync1435 \rm /tmp/out_command.$$ 1436 1436 fi 1437 1437 fi … … 1473 1473 i=0 1474 1474 while [ $i -lt $NB_ESSAI ] ; do 1475 \cp ${target} ${DEST}/${local_file} >> out_rsync2>&11475 \cp ${target} ${DEST}/${local_file} >> /tmp/out_command.$$ 2>&1 1476 1476 status=$? 1477 1477 if [ ${status} -gt 0 ]; then … … 1486 1486 if [ ${status} -gt 0 ] ; then 1487 1487 echo "IGCM_sys_Get : error" 1488 cat out_rsync1489 \rm out_rsync1488 cat /tmp/out_command.$$ 1489 \rm /tmp/out_command.$$ 1490 1490 IGCM_debug_Exit "IGCM_sys_GetBuffer" 1491 1491 else 1492 \rm out_rsync1492 \rm /tmp/out_command.$$ 1493 1493 fi 1494 1494 done … … 1496 1496 i=0 1497 1497 while [ $i -lt $NB_ESSAI ] ; do 1498 \cp ${buf_liste} ${DEST} >> out_rsync2>&11498 \cp ${buf_liste} ${DEST} >> /tmp/out_command.$$ 2>&1 1499 1499 status=$? 1500 1500 if [ ${status} -gt 0 ]; then … … 1509 1509 if [ ${status} -gt 0 ] ; then 1510 1510 echo "IGCM_sys_Get : error" 1511 cat out_rsync1512 \rm out_rsync1511 cat /tmp/out_command.$$ 1512 \rm /tmp/out_command.$$ 1513 1513 IGCM_debug_Exit "IGCM_sys_GetBuffer" 1514 1514 else 1515 \rm out_rsync1515 \rm /tmp/out_command.$$ 1516 1516 fi 1517 1517 fi … … 1636 1636 i=0 1637 1637 while [ $i -lt $NB_ESSAI ] ; do 1638 /smphome/rech/psl/rpsl035/bin/rebuild -f -o $@ > out_rsync2>&11638 /smphome/rech/psl/rpsl035/bin/rebuild -f -o $@ > /tmp/out_command.$$ 2>&1 1639 1639 status=$? 1640 1640 if [ ${status} -gt 0 ] ; then 1641 1641 IGCM_debug_Print 2 "IGCM_sys_rebuild : error code ${status}" 1642 cat out_rsync1643 \rm out_rsync1642 cat /tmp/out_command.$$ 1643 \rm /tmp/out_command.$$ 1644 1644 IGCM_debug_Print 2 "IGCM_sys_rebuild : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 1645 1645 firstArg=${1} … … 1647 1647 sleep $DELAI 1648 1648 else 1649 \rm out_rsync1649 \rm /tmp/out_command.$$ 1650 1650 break 1651 1651 fi … … 2035 2035 i=0 2036 2036 while [ $i -lt $NB_ESSAI ] ; do 2037 ncap2 "$@" > out_rsync2>&12037 ncap2 "$@" > /tmp/out_command.$$ 2>&1 2038 2038 status=$? 2039 2039 if [ ${status} -gt 0 ] ; then 2040 2040 IGCM_debug_Print 2 "IGCM_sys_ncap2 : error code ${status}" 2041 cat out_rsync2042 \rm out_rsync2041 cat /tmp/out_command.$$ 2042 \rm /tmp/out_command.$$ 2043 2043 IGCM_debug_Print 2 "IGCM_sys_ncap2 : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2044 2044 sleep $DELAI 2045 2045 else 2046 \rm out_rsync2046 \rm /tmp/out_command.$$ 2047 2047 break 2048 2048 fi … … 2077 2077 i=0 2078 2078 while [ $i -lt $NB_ESSAI ] ; do 2079 ncatted "$@" > out_rsync2>&12079 ncatted "$@" > /tmp/out_command.$$ 2>&1 2080 2080 status=$? 2081 2081 if [ ${status} -gt 0 ] ; then 2082 2082 IGCM_debug_Print 2 "IGCM_sys_ncatted : error code ${status}" 2083 cat out_rsync2084 \rm out_rsync2083 cat /tmp/out_command.$$ 2084 \rm /tmp/out_command.$$ 2085 2085 IGCM_debug_Print 2 "IGCM_sys_ncatted : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2086 2086 sleep $DELAI 2087 2087 else 2088 \rm out_rsync2088 \rm /tmp/out_command.$$ 2089 2089 break 2090 2090 fi … … 2119 2119 i=0 2120 2120 while [ $i -lt $NB_ESSAI ] ; do 2121 ncbo $@ > out_rsync2>&12121 ncbo $@ > /tmp/out_command.$$ 2>&1 2122 2122 status=$? 2123 2123 if [ ${status} -gt 0 ] ; then 2124 2124 IGCM_debug_Print 2 "IGCM_sys_ncbo : error code ${status}" 2125 cat out_rsync2126 \rm out_rsync2125 cat /tmp/out_command.$$ 2126 \rm /tmp/out_command.$$ 2127 2127 IGCM_debug_Print 2 "IGCM_sys_ncbo : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2128 2128 sleep $DELAI 2129 2129 else 2130 \rm out_rsync2130 \rm /tmp/out_command.$$ 2131 2131 break 2132 2132 fi … … 2161 2161 i=0 2162 2162 while [ $i -lt $NB_ESSAI ] ; do 2163 ncdiff $@ > out_rsync2>&12163 ncdiff $@ > /tmp/out_command.$$ 2>&1 2164 2164 status=$? 2165 2165 if [ ${status} -gt 0 ] ; then 2166 2166 IGCM_debug_Print 2 "IGCM_sys_ncdiff : error code ${status}" 2167 cat out_rsync2168 \rm out_rsync2167 cat /tmp/out_command.$$ 2168 \rm /tmp/out_command.$$ 2169 2169 IGCM_debug_Print 2 "IGCM_sys_ncdiff : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2170 2170 sleep $DELAI 2171 2171 else 2172 \rm out_rsync2172 \rm /tmp/out_command.$$ 2173 2173 break 2174 2174 fi … … 2203 2203 i=0 2204 2204 while [ $i -lt $NB_ESSAI ] ; do 2205 ncea $@ > out_rsync2>&12205 ncea $@ > /tmp/out_command.$$ 2>&1 2206 2206 status=$? 2207 2207 if [ ${status} -gt 0 ] ; then 2208 2208 IGCM_debug_Print 2 "IGCM_sys_ncea : error code ${status}" 2209 cat out_rsync2210 \rm out_rsync2209 cat /tmp/out_command.$$ 2210 \rm /tmp/out_command.$$ 2211 2211 IGCM_debug_Print 2 "IGCM_sys_ncea : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2212 2212 sleep $DELAI 2213 2213 else 2214 \rm out_rsync2214 \rm /tmp/out_command.$$ 2215 2215 break 2216 2216 fi … … 2245 2245 i=0 2246 2246 while [ $i -lt $NB_ESSAI ] ; do 2247 ncecat $@ > out_rsync2>&12247 ncecat $@ > /tmp/out_command.$$ 2>&1 2248 2248 status=$? 2249 2249 if [ ${status} -gt 0 ] ; then 2250 2250 IGCM_debug_Print 2 "IGCM_sys_ncecat : error code ${status}" 2251 cat out_rsync2252 \rm out_rsync2251 cat /tmp/out_command.$$ 2252 \rm /tmp/out_command.$$ 2253 2253 IGCM_debug_Print 2 "IGCM_sys_ncecat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2254 2254 sleep $DELAI 2255 2255 else 2256 \rm out_rsync2256 \rm /tmp/out_command.$$ 2257 2257 break 2258 2258 fi … … 2287 2287 i=0 2288 2288 while [ $i -lt $NB_ESSAI ] ; do 2289 ncflint $@ > out_rsync2>&12289 ncflint $@ > /tmp/out_command.$$ 2>&1 2290 2290 status=$? 2291 2291 if [ ${status} -gt 0 ] ; then 2292 2292 IGCM_debug_Print 2 "IGCM_sys_ncflint : error code ${status}" 2293 cat out_rsync2294 \rm out_rsync2293 cat /tmp/out_command.$$ 2294 \rm /tmp/out_command.$$ 2295 2295 IGCM_debug_Print 2 "IGCM_sys_ncflint : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2296 2296 sleep $DELAI 2297 2297 else 2298 \rm out_rsync2298 \rm /tmp/out_command.$$ 2299 2299 break 2300 2300 fi … … 2329 2329 i=0 2330 2330 while [ $i -lt $NB_ESSAI ] ; do 2331 ncks $@ > out_rsync2>&12331 ncks $@ > /tmp/out_command.$$ 2>&1 2332 2332 status=$? 2333 2333 if [ ${status} -gt 0 ] ; then 2334 2334 IGCM_debug_Print 2 "IGCM_sys_ncks : error code ${status}" 2335 cat out_rsync2336 \rm out_rsync2335 cat /tmp/out_command.$$ 2336 \rm /tmp/out_command.$$ 2337 2337 IGCM_debug_Print 2 "IGCM_sys_ncks : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2338 2338 sleep $DELAI 2339 2339 else 2340 \rm out_rsync2340 \rm /tmp/out_command.$$ 2341 2341 break 2342 2342 fi … … 2371 2371 i=0 2372 2372 while [ $i -lt $NB_ESSAI ] ; do 2373 ncpdq $@ > out_rsync2>&12373 ncpdq $@ > /tmp/out_command.$$ 2>&1 2374 2374 status=$? 2375 2375 if [ ${status} -gt 0 ] ; then 2376 2376 IGCM_debug_Print 2 "IGCM_sys_ncpdq : error code ${status}" 2377 cat out_rsync2378 \rm out_rsync2377 cat /tmp/out_command.$$ 2378 \rm /tmp/out_command.$$ 2379 2379 IGCM_debug_Print 2 "IGCM_sys_ncpdq : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2380 2380 sleep $DELAI 2381 2381 else 2382 \rm out_rsync2382 \rm /tmp/out_command.$$ 2383 2383 break 2384 2384 fi … … 2413 2413 i=0 2414 2414 while [ $i -lt $NB_ESSAI ] ; do 2415 ncra $@ > out_rsync2>&12415 ncra $@ > /tmp/out_command.$$ 2>&1 2416 2416 status=$? 2417 2417 if [ ${status} -gt 0 ] ; then 2418 2418 IGCM_debug_Print 2 "IGCM_sys_ncra : error code ${status}" 2419 cat out_rsync2420 \rm out_rsync2419 cat /tmp/out_command.$$ 2420 \rm /tmp/out_command.$$ 2421 2421 IGCM_debug_Print 2 "IGCM_sys_ncra : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2422 2422 sleep $DELAI 2423 2423 else 2424 \rm out_rsync2424 \rm /tmp/out_command.$$ 2425 2425 break 2426 2426 fi … … 2455 2455 i=0 2456 2456 while [ $i -lt $NB_ESSAI ] ; do 2457 ncrcat $@ > out_rsync2>&12457 ncrcat $@ > /tmp/out_command.$$ 2>&1 2458 2458 status=$? 2459 2459 if [ ${status} -gt 0 ] ; then 2460 2460 IGCM_debug_Print 2 "IGCM_sys_ncrcat : error code ${status}" 2461 cat out_rsync2462 \rm out_rsync2461 cat /tmp/out_command.$$ 2462 \rm /tmp/out_command.$$ 2463 2463 IGCM_debug_Print 2 "IGCM_sys_ncrcat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2464 2464 sleep $DELAI 2465 elif [ ! "X$( grep "WARNING Intra-file non-monotonicity" out_rsync)" = "X" ] ; then2465 elif [ ! "X$( grep "WARNING Intra-file non-monotonicity" /tmp/out_command.$$ )" = "X" ] ; then 2466 2466 IGCM_debug_Print 2 "IGCM_sys_ncrcat : WARNING Intra-file non-monotonicity" 2467 cat out_rsync2467 cat /tmp/out_command.$$ 2468 2468 # remove files having corrupted time axis 2469 2469 eval lastArg=\${$#} 2470 2470 IGCM_debug_Print 2 "IGCM_sys_ncrcat : Delete ${lastArg}" 2471 2471 \rm ${lastArg} 2472 \rm out_rsync2472 \rm /tmp/out_command.$$ 2473 2473 IGCM_debug_Print 2 "IGCM_sys_ncrcat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2474 2474 sleep $DELAI 2475 2475 else 2476 \rm out_rsync2476 \rm /tmp/out_command.$$ 2477 2477 break 2478 2478 fi … … 2507 2507 i=0 2508 2508 while [ $i -lt $NB_ESSAI ] ; do 2509 ncrename $@ > out_rsync2>&12509 ncrename $@ > /tmp/out_command.$$ 2>&1 2510 2510 status=$? 2511 2511 if [ ${status} -gt 0 ] ; then 2512 2512 IGCM_debug_Print 2 "IGCM_sys_ncrename : error code ${status}" 2513 cat out_rsync2514 \rm out_rsync2513 cat /tmp/out_command.$$ 2514 \rm /tmp/out_command.$$ 2515 2515 IGCM_debug_Print 2 "IGCM_sys_ncrename : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2516 2516 sleep $DELAI 2517 2517 else 2518 \rm out_rsync2518 \rm /tmp/out_command.$$ 2519 2519 break 2520 2520 fi … … 2549 2549 i=0 2550 2550 while [ $i -lt $NB_ESSAI ] ; do 2551 ncwa $@ > out_rsync2>&12551 ncwa $@ > /tmp/out_command.$$ 2>&1 2552 2552 status=$? 2553 2553 if [ ${status} -gt 0 ] ; then 2554 2554 IGCM_debug_Print 2 "IGCM_sys_ncwa : error code ${status}" 2555 cat out_rsync2556 \rm out_rsync2555 cat /tmp/out_command.$$ 2556 \rm /tmp/out_command.$$ 2557 2557 IGCM_debug_Print 2 "IGCM_sys_ncwa : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2558 2558 sleep $DELAI 2559 2559 else 2560 \rm out_rsync2560 \rm /tmp/out_command.$$ 2561 2561 break 2562 2562 fi … … 2588 2588 typeset status 2589 2589 2590 \cdo $@ > out_rsync2>&12590 \cdo $@ > /tmp/out_command.$$ 2>&1 2591 2591 status=$? 2592 2592 if [ ${status} -gt 0 ] ; then 2593 2593 echo "IGCM_sys_cdo : error code ${status}" 2594 cat out_rsync2595 \rm out_rsync2594 cat /tmp/out_command.$$ 2595 \rm /tmp/out_command.$$ 2596 2596 IGCM_debug_PopStack "IGCM_sys_cdo" 2597 2597 return 1
Note: See TracChangeset
for help on using the changeset viewer.