Changeset 938 for trunk/libIGCM/libIGCM_sys/libIGCM_sys_default.ksh
- Timestamp:
- 08/23/13 11:38:14 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_sys/libIGCM_sys_default.ksh
r936 r938 720 720 mkdir -p ${HOME}/MIRROR/${PATHlibIGCM} 721 721 722 echo ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} > out_rsync2>&1723 ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} >> out_rsync2>&1722 echo ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} > /tmp/out_command.$$ 2>&1 723 ${RSYNC} ${RSYNC_opt} ${libIGCM} ${HOME}/MIRROR/${PATHlibIGCM} >> /tmp/out_command.$$ 2>&1 724 724 status=$? 725 725 726 726 if [ ${status} -gt 0 ] ; then 727 727 echo "IGCM_sys_Mirror_libIGCM Warning : no libIGCM on frontend." 728 cat out_rsync728 cat /tmp/out_command.$$ 729 729 fi 730 730 IGCM_debug_PopStack "IGCM_sys_Mirror_libIGCM" … … 744 744 typeset status 745 745 746 echo cp $@ > out_rsync2>&1747 \cp $@ >> out_rsync2>&1746 echo cp $@ > /tmp/out_command.$$ 2>&1 747 \cp $@ >> /tmp/out_command.$$ 2>&1 748 748 status=$? 749 749 750 750 if [ ${status} -gt 0 ] ; then 751 751 echo "IGCM_sys_Cp : error code ${status}" 752 cat out_rsync752 cat /tmp/out_command.$$ 753 753 IGCM_debug_Exit "IGCM_sys_Cp" 754 754 else 755 \rm out_rsync755 \rm /tmp/out_command.$$ 756 756 fi 757 757 IGCM_debug_PopStack "IGCM_sys_Cp" … … 771 771 typeset status 772 772 773 echo rm $@ > out_rsync2>&1774 \rm $@ >> out_rsync2>&1773 echo rm $@ > /tmp/out_command.$$ 2>&1 774 \rm $@ >> /tmp/out_command.$$ 2>&1 775 775 status=$? 776 776 777 777 if [ ${status} -gt 0 ] ; then 778 778 echo "IGCM_sys_Rm : error code ${status}" 779 cat out_rsync779 cat /tmp/out_command.$$ 780 780 IGCM_debug_Exit "IGCM_sys_Rm" 781 781 else 782 \rm out_rsync782 \rm /tmp/out_command.$$ 783 783 fi 784 784 IGCM_debug_PopStack "IGCM_sys_Rm" … … 816 816 typeset status 817 817 818 echo mv $@ > out_rsync2>&1819 \mv $@ >> out_rsync2>&1818 echo mv $@ > /tmp/out_command.$$ 2>&1 819 \mv $@ >> /tmp/out_command.$$ 2>&1 820 820 status=$? 821 821 822 822 if [ ${status} -gt 0 ] ; then 823 823 echo "IGCM_sys_Mv : error code ${status}" 824 cat out_rsync824 cat /tmp/out_command.$$ 825 825 IGCM_debug_Exit "IGCM_sys_Mv" 826 826 else 827 \rm out_rsync827 \rm /tmp/out_command.$$ 828 828 fi 829 829 fi … … 855 855 # 856 856 #USUAL WAY 857 \cp -r $1 $2 > out_rsync2>&1857 \cp -r $1 $2 > /tmp/out_command.$$ 2>&1 858 858 status=$? 859 859 860 860 if [ ${status} -gt 0 ] ; then 861 861 IGCM_debug_Print 2 "IGCM_sys_Put_Dir : cp failed error code ${status}" 862 cat out_rsync862 cat /tmp/out_command.$$ 863 863 IGCM_debug_Exit "IGCM_sys_Put_Dir" 864 864 else 865 \rm out_rsync865 \rm /tmp/out_command.$$ 866 866 fi 867 867 fi … … 889 889 890 890 #USUAL WAY 891 \cp -ur $1 $2 > out_rsync2>&1891 \cp -ur $1 $2 > /tmp/out_command.$$ 2>&1 892 892 status=$? 893 893 894 894 if [ ${status} -gt 0 ] ; then 895 895 IGCM_debug_Print 2 "IGCM_sys_Get_Dir : cp failed error code ${status}" 896 cat out_rsync896 cat /tmp/out_command.$$ 897 897 IGCM_debug_Exit "IGCM_sys_Get_Dir" 898 898 else 899 \rm out_rsync899 \rm /tmp/out_command.$$ 900 900 fi 901 901 fi … … 928 928 i=0 929 929 while [ $i -lt $NB_ESSAI ] ; do 930 \cp -urL $1 $2 > out_rsync2>&1930 \cp -urL $1 $2 > /tmp/out_command.$$ 2>&1 931 931 status=$? 932 932 if [ ${status} -gt 0 ]; then … … 942 942 if [ ${status} -gt 0 ] ; then 943 943 echo "IGCM_sys_Get_Master : error." 944 cat out_rsync944 cat /tmp/out_command.$$ 945 945 IGCM_debug_Exit "IGCM_sys_Get_Master" 946 946 else 947 \rm out_rsync947 \rm /tmp/out_command.$$ 948 948 fi 949 949 fi … … 984 984 # 985 985 #USUAL WAY 986 \cp $1 $2 > out_rsync2>&1986 \cp $1 $2 > /tmp/out_command.$$ 2>&1 987 987 status=$? 988 988 989 989 # #RSYNC WITH NETWORK SSH CALL 990 # echo ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} > out_rsync2>&1991 # ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> out_rsync2>&1990 # echo ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} > /tmp/out_command.$$ 2>&1 991 # ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${STOREHOST}:${2} >> /tmp/out_command.$$ 2>&1 992 992 993 993 # #RSYNC WITH NFS USE 994 # echo ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} > out_rsync2>&1995 # ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> out_rsync2>&1994 # echo ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} > /tmp/out_command.$$ 2>&1 995 # ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> /tmp/out_command.$$ 2>&1 996 996 997 997 # status=$? 998 998 # IGCM_sys_Rsync_out $status 999 999 1000 # ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk out_rsync1000 # ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk /tmp/out_command.$$ 1001 1001 # (( status=status+$? )) 1002 1002 1003 1003 if [ ${status} -gt 0 ] ; then 1004 1004 echo "IGCM_sys_Put_Rest : cp failed error code ${status}" 1005 cat out_rsync1005 cat /tmp/out_command.$$ 1006 1006 IGCM_debug_Exit "IGCM_sys_Put_Rest" 1007 1007 else 1008 \rm out_rsync1008 \rm /tmp/out_command.$$ 1009 1009 fi 1010 1010 fi … … 1037 1037 # 1038 1038 # USUAL WAY 1039 \cp $1 $2 > out_rsync2>&11039 \cp $1 $2 > /tmp/out_command.$$ 2>&1 1040 1040 status=$? 1041 1041 … … 1044 1044 [ -f ${2} ] && ls -l ${2} 1045 1045 [ -f ${2}/${1} ] && ls -l ${2}/${1} 1046 cat out_rsync1046 cat /tmp/out_command.$$ 1047 1047 IGCM_debug_Exit "IGCM_sys_PutBuffer_Rest" 1048 1048 else 1049 \rm out_rsync1049 \rm /tmp/out_command.$$ 1050 1050 fi 1051 1051 fi … … 1093 1093 # 1094 1094 1095 echo ${RSYNC} ${RSYNC_opt} $1 $2 > out_rsync2>&11096 ${RSYNC} ${RSYNC_opt} $1 $2 >> out_rsync2>&11095 echo ${RSYNC} ${RSYNC_opt} $1 $2 > /tmp/out_command.$$ 2>&1 1096 ${RSYNC} ${RSYNC_opt} $1 $2 >> /tmp/out_command.$$ 2>&1 1097 1097 status=$? 1098 1098 IGCM_sys_Rsync_out $status 1099 1099 1100 ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk out_rsync1100 ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk /tmp/out_command.$$ 1101 1101 (( status=status+$? )) 1102 1102 1103 1103 if [ ${status} -gt 0 ] ; then 1104 1104 IGCM_debug_Print 2 "IGCM_sys_Put_Out : rsync failed error code ${status}" 1105 cat out_rsync1105 cat /tmp/out_command.$$ 1106 1106 IGCM_debug_Exit "IGCM_sys_Put_Out" 1107 1107 else 1108 \rm out_rsync1108 \rm /tmp/out_command.$$ 1109 1109 fi 1110 1110 fi … … 1164 1164 while [ $i -lt $NB_ESSAI ] ; do 1165 1165 # USUAL WAY 1166 \cp $1 $2 > out_rsync2>&11166 \cp $1 $2 > /tmp/out_command.$$ 2>&1 1167 1167 status=$? 1168 1168 if [ ${status} -gt 0 ]; then … … 1183 1183 [ -f ${2} ] && ls -l ${2} 1184 1184 [ -f ${2}/${1} ] && ls -l ${2}/${1} 1185 cat out_rsync1185 cat /tmp/out_command.$$ 1186 1186 IGCM_debug_Exit "IGCM_sys_PutBuffer_Out" 1187 1187 else … … 1194 1194 fi 1195 1195 1196 \rm out_rsync1196 \rm /tmp/out_command.$$ 1197 1197 fi 1198 1198 fi … … 1232 1232 1233 1233 #USUAL WAY 1234 \cp ${dm_liste[*]} ${DEST} > out_rsync2>&11234 \cp ${dm_liste[*]} ${DEST} > /tmp/out_command.$$ 2>&1 1235 1235 status=$? 1236 1236 1237 1237 if [ ${status} -gt 0 ] ; then 1238 1238 IGCM_debug_Print 2 "IGCM_sys_Get : cp failed error code ${status}" 1239 cat out_rsync1239 cat /tmp/out_command.$$ 1240 1240 IGCM_debug_Exit "IGCM_sys_Get" 1241 1241 else 1242 \rm out_rsync1242 \rm /tmp/out_command.$$ 1243 1243 fi 1244 1244 fi … … 1280 1280 i=0 1281 1281 while [ $i -lt $NB_ESSAI ] ; do 1282 \cp ${target} ${DEST}/${local_file} >> out_rsync2>&11282 \cp ${target} ${DEST}/${local_file} >> /tmp/out_command.$$ 2>&1 1283 1283 status=$? 1284 1284 if [ ${status} -gt 0 ]; then … … 1293 1293 if [ ${status} -gt 0 ] ; then 1294 1294 echo "IGCM_sys_Get : error" 1295 cat out_rsync1296 \rm out_rsync1295 cat /tmp/out_command.$$ 1296 \rm /tmp/out_command.$$ 1297 1297 IGCM_debug_Exit "IGCM_sys_GetBuffer" 1298 1298 else 1299 \rm out_rsync1299 \rm /tmp/out_command.$$ 1300 1300 fi 1301 1301 done … … 1303 1303 i=0 1304 1304 while [ $i -lt $NB_ESSAI ] ; do 1305 \cp ${buf_liste} ${DEST} >> out_rsync2>&11305 \cp ${buf_liste} ${DEST} >> /tmp/out_command.$$ 2>&1 1306 1306 status=$? 1307 1307 if [ ${status} -gt 0 ]; then … … 1316 1316 if [ ${status} -gt 0 ] ; then 1317 1317 echo "IGCM_sys_Get : error" 1318 cat out_rsync1319 \rm out_rsync1318 cat /tmp/out_command.$$ 1319 \rm /tmp/out_command.$$ 1320 1320 IGCM_debug_Exit "IGCM_sys_GetBuffer" 1321 1321 else 1322 \rm out_rsync1322 \rm /tmp/out_command.$$ 1323 1323 fi 1324 1324 fi … … 1421 1421 i=0 1422 1422 while [ $i -lt $NB_ESSAI ] ; do 1423 rebuild -f -o $@ > out_rsync2>&11423 rebuild -f -o $@ > /tmp/out_command.$$ 2>&1 1424 1424 status=$? 1425 1425 if [ ${status} -gt 0 ] ; then 1426 1426 IGCM_debug_Print 2 "IGCM_sys_rebuild : error code ${status}" 1427 cat out_rsync1428 \rm out_rsync1427 cat /tmp/out_command.$$ 1428 \rm /tmp/out_command.$$ 1429 1429 IGCM_debug_Print 2 "IGCM_sys_rebuild : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 1430 1430 firstArg=${1} … … 1432 1432 sleep $DELAI 1433 1433 else 1434 \rm out_rsync1434 \rm /tmp/out_command.$$ 1435 1435 break 1436 1436 fi … … 1940 1940 i=0 1941 1941 while [ $i -lt $NB_ESSAI ] ; do 1942 ncap2 "$@" > out_rsync2>&11942 ncap2 "$@" > /tmp/out_command.$$ 2>&1 1943 1943 status=$? 1944 1944 if [ ${status} -gt 0 ] ; then 1945 1945 IGCM_debug_Print 2 "IGCM_sys_ncap2 : error code ${status}" 1946 cat out_rsync1947 \rm out_rsync1946 cat /tmp/out_command.$$ 1947 \rm /tmp/out_command.$$ 1948 1948 IGCM_debug_Print 2 "IGCM_sys_ncap2 : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 1949 1949 sleep $DELAI 1950 1950 else 1951 \rm out_rsync1951 \rm /tmp/out_command.$$ 1952 1952 break 1953 1953 fi … … 1982 1982 i=0 1983 1983 while [ $i -lt $NB_ESSAI ] ; do 1984 ncatted "$@" > out_rsync2>&11984 ncatted "$@" > /tmp/out_command.$$ 2>&1 1985 1985 status=$? 1986 1986 if [ ${status} -gt 0 ] ; then 1987 1987 IGCM_debug_Print 2 "IGCM_sys_ncatted : error code ${status}" 1988 cat out_rsync1989 \rm out_rsync1988 cat /tmp/out_command.$$ 1989 \rm /tmp/out_command.$$ 1990 1990 IGCM_debug_Print 2 "IGCM_sys_ncatted : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 1991 1991 sleep $DELAI 1992 1992 else 1993 \rm out_rsync1993 \rm /tmp/out_command.$$ 1994 1994 break 1995 1995 fi … … 2024 2024 i=0 2025 2025 while [ $i -lt $NB_ESSAI ] ; do 2026 ncbo $@ > out_rsync2>&12026 ncbo $@ > /tmp/out_command.$$ 2>&1 2027 2027 status=$? 2028 2028 if [ ${status} -gt 0 ] ; then 2029 2029 IGCM_debug_Print 2 "IGCM_sys_ncbo : error code ${status}" 2030 cat out_rsync2031 \rm out_rsync2030 cat /tmp/out_command.$$ 2031 \rm /tmp/out_command.$$ 2032 2032 IGCM_debug_Print 2 "IGCM_sys_ncbo : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2033 2033 sleep $DELAI 2034 2034 else 2035 \rm out_rsync2035 \rm /tmp/out_command.$$ 2036 2036 break 2037 2037 fi … … 2066 2066 i=0 2067 2067 while [ $i -lt $NB_ESSAI ] ; do 2068 ncdiff $@ > out_rsync2>&12068 ncdiff $@ > /tmp/out_command.$$ 2>&1 2069 2069 status=$? 2070 2070 if [ ${status} -gt 0 ] ; then 2071 2071 IGCM_debug_Print 2 "IGCM_sys_ncdiff : error code ${status}" 2072 cat out_rsync2073 \rm out_rsync2072 cat /tmp/out_command.$$ 2073 \rm /tmp/out_command.$$ 2074 2074 IGCM_debug_Print 2 "IGCM_sys_ncdiff : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2075 2075 sleep $DELAI 2076 2076 else 2077 \rm out_rsync2077 \rm /tmp/out_command.$$ 2078 2078 break 2079 2079 fi … … 2108 2108 i=0 2109 2109 while [ $i -lt $NB_ESSAI ] ; do 2110 ncea $@ > out_rsync2>&12110 ncea $@ > /tmp/out_command.$$ 2>&1 2111 2111 status=$? 2112 2112 if [ ${status} -gt 0 ] ; then 2113 2113 IGCM_debug_Print 2 "IGCM_sys_ncea : error code ${status}" 2114 cat out_rsync2115 \rm out_rsync2114 cat /tmp/out_command.$$ 2115 \rm /tmp/out_command.$$ 2116 2116 IGCM_debug_Print 2 "IGCM_sys_ncea : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2117 2117 sleep $DELAI 2118 2118 else 2119 \rm out_rsync2119 \rm /tmp/out_command.$$ 2120 2120 break 2121 2121 fi … … 2150 2150 i=0 2151 2151 while [ $i -lt $NB_ESSAI ] ; do 2152 ncecat $@ > out_rsync2>&12152 ncecat $@ > /tmp/out_command.$$ 2>&1 2153 2153 status=$? 2154 2154 if [ ${status} -gt 0 ] ; then 2155 2155 IGCM_debug_Print 2 "IGCM_sys_ncecat : error code ${status}" 2156 cat out_rsync2157 \rm out_rsync2156 cat /tmp/out_command.$$ 2157 \rm /tmp/out_command.$$ 2158 2158 IGCM_debug_Print 2 "IGCM_sys_ncecat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2159 2159 sleep $DELAI 2160 2160 else 2161 \rm out_rsync2161 \rm /tmp/out_command.$$ 2162 2162 break 2163 2163 fi … … 2192 2192 i=0 2193 2193 while [ $i -lt $NB_ESSAI ] ; do 2194 ncflint $@ > out_rsync2>&12194 ncflint $@ > /tmp/out_command.$$ 2>&1 2195 2195 status=$? 2196 2196 if [ ${status} -gt 0 ] ; then 2197 2197 IGCM_debug_Print 2 "IGCM_sys_ncflint : error code ${status}" 2198 cat out_rsync2199 \rm out_rsync2198 cat /tmp/out_command.$$ 2199 \rm /tmp/out_command.$$ 2200 2200 IGCM_debug_Print 2 "IGCM_sys_ncflint : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2201 2201 sleep $DELAI 2202 2202 else 2203 \rm out_rsync2203 \rm /tmp/out_command.$$ 2204 2204 break 2205 2205 fi … … 2234 2234 i=0 2235 2235 while [ $i -lt $NB_ESSAI ] ; do 2236 ncks $@ > out_rsync2>&12236 ncks $@ > /tmp/out_command.$$ 2>&1 2237 2237 status=$? 2238 2238 if [ ${status} -gt 0 ] ; then 2239 2239 IGCM_debug_Print 2 "IGCM_sys_ncks : error code ${status}" 2240 cat out_rsync2241 \rm out_rsync2240 cat /tmp/out_command.$$ 2241 \rm /tmp/out_command.$$ 2242 2242 IGCM_debug_Print 2 "IGCM_sys_ncks : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2243 2243 sleep $DELAI 2244 2244 else 2245 \rm out_rsync2245 \rm /tmp/out_command.$$ 2246 2246 break 2247 2247 fi … … 2276 2276 i=0 2277 2277 while [ $i -lt $NB_ESSAI ] ; do 2278 ncpdq $@ > out_rsync2>&12278 ncpdq $@ > /tmp/out_command.$$ 2>&1 2279 2279 status=$? 2280 2280 if [ ${status} -gt 0 ] ; then 2281 2281 IGCM_debug_Print 2 "IGCM_sys_ncpdq : error code ${status}" 2282 cat out_rsync2283 \rm out_rsync2282 cat /tmp/out_command.$$ 2283 \rm /tmp/out_command.$$ 2284 2284 IGCM_debug_Print 2 "IGCM_sys_ncpdq : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2285 2285 sleep $DELAI 2286 2286 else 2287 \rm out_rsync2287 \rm /tmp/out_command.$$ 2288 2288 break 2289 2289 fi … … 2318 2318 i=0 2319 2319 while [ $i -lt $NB_ESSAI ] ; do 2320 ncra $@ > out_rsync2>&12320 ncra $@ > /tmp/out_command.$$ 2>&1 2321 2321 status=$? 2322 2322 if [ ${status} -gt 0 ] ; then 2323 2323 IGCM_debug_Print 2 "IGCM_sys_ncra : error code ${status}" 2324 cat out_rsync2325 \rm out_rsync2324 cat /tmp/out_command.$$ 2325 \rm /tmp/out_command.$$ 2326 2326 IGCM_debug_Print 2 "IGCM_sys_ncra : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2327 2327 sleep $DELAI 2328 2328 else 2329 \rm out_rsync2329 \rm /tmp/out_command.$$ 2330 2330 break 2331 2331 fi … … 2360 2360 i=0 2361 2361 while [ $i -lt $NB_ESSAI ] ; do 2362 ncrcat $@ > out_rsync2>&12362 ncrcat $@ > /tmp/out_command.$$ 2>&1 2363 2363 status=$? 2364 2364 if [ ${status} -gt 0 ] ; then 2365 2365 IGCM_debug_Print 2 "IGCM_sys_ncrcat : error code ${status}" 2366 cat out_rsync2367 \rm out_rsync2366 cat /tmp/out_command.$$ 2367 \rm /tmp/out_command.$$ 2368 2368 IGCM_debug_Print 2 "IGCM_sys_ncrcat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2369 2369 sleep $DELAI 2370 elif [ ! "X$( grep "WARNING Intra-file non-monotonicity" out_rsync)" = "X" ] ; then2370 elif [ ! "X$( grep "WARNING Intra-file non-monotonicity" /tmp/out_command.$$ )" = "X" ] ; then 2371 2371 IGCM_debug_Print 2 "IGCM_sys_ncrcat : WARNING Intra-file non-monotonicity" 2372 cat out_rsync2372 cat /tmp/out_command.$$ 2373 2373 # remove files having corrupted time axis 2374 2374 eval lastArg=\${$#} 2375 2375 IGCM_debug_Print 2 "IGCM_sys_ncrcat : Delete ${lastArg}" 2376 2376 \rm ${lastArg} 2377 \rm out_rsync2377 \rm /tmp/out_command.$$ 2378 2378 IGCM_debug_Print 2 "IGCM_sys_ncrcat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2379 2379 sleep $DELAI 2380 2380 else 2381 \rm out_rsync2381 \rm /tmp/out_command.$$ 2382 2382 break 2383 2383 fi … … 2412 2412 i=0 2413 2413 while [ $i -lt $NB_ESSAI ] ; do 2414 ncrename $@ > out_rsync2>&12414 ncrename $@ > /tmp/out_command.$$ 2>&1 2415 2415 status=$? 2416 2416 if [ ${status} -gt 0 ] ; then 2417 2417 IGCM_debug_Print 2 "IGCM_sys_ncrename : error code ${status}" 2418 cat out_rsync2419 \rm out_rsync2418 cat /tmp/out_command.$$ 2419 \rm /tmp/out_command.$$ 2420 2420 IGCM_debug_Print 2 "IGCM_sys_ncrename : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2421 2421 sleep $DELAI 2422 2422 else 2423 \rm out_rsync2423 \rm /tmp/out_command.$$ 2424 2424 break 2425 2425 fi … … 2454 2454 i=0 2455 2455 while [ $i -lt $NB_ESSAI ] ; do 2456 ncwa $@ > out_rsync2>&12456 ncwa $@ > /tmp/out_command.$$ 2>&1 2457 2457 status=$? 2458 2458 if [ ${status} -gt 0 ] ; then 2459 2459 IGCM_debug_Print 2 "IGCM_sys_ncwa : error code ${status}" 2460 cat out_rsync2461 \rm out_rsync2460 cat /tmp/out_command.$$ 2461 \rm /tmp/out_command.$$ 2462 2462 IGCM_debug_Print 2 "IGCM_sys_ncwa : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2463 2463 sleep $DELAI 2464 2464 else 2465 \rm out_rsync2465 \rm /tmp/out_command.$$ 2466 2466 break 2467 2467 fi … … 2493 2493 typeset status 2494 2494 2495 \cdo $@ > out_rsync2>&12495 \cdo $@ > /tmp/out_command.$$ 2>&1 2496 2496 status=$? 2497 2497 if [ ${status} -gt 0 ] ; then 2498 2498 echo "IGCM_sys_cdo : error code ${status}" 2499 cat out_rsync2500 \rm out_rsync2499 cat /tmp/out_command.$$ 2500 \rm /tmp/out_command.$$ 2501 2501 IGCM_debug_PopStack "IGCM_sys_cdo" 2502 2502 return 1
Note: See TracChangeset
for help on using the changeset viewer.