Changeset 719 for trunk/libIGCM/libIGCM_sys/libIGCM_sys_ulam.ksh
- Timestamp:
- 10/16/12 13:04:38 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_sys/libIGCM_sys_ulam.ksh
r714 r719 509 509 #D- Error values and explanations can depend on your system version. 510 510 function IGCM_sys_Rsync_out { 511 RET=$1512 if [ ! $ RET] ; then511 status=$1 512 if [ ! $status ] ; then 513 513 echo "rsync error !" 514 514 fi 515 515 516 516 if [ $MYLANG = "fr" ]; then 517 case $ RETin517 case $status in 518 518 0) return ;; 519 519 1) echo "Erreur de rsync ; RERR_SYNTAX : " … … 563 563 echo "Temps d'attente écoulé dans l'envoi/réception de données" 564 564 return;; 565 *) echo "Erreur de rsync : code de retour de rsync inconnu :" $ RET565 *) echo "Erreur de rsync : code de retour de rsync inconnu :" $status 566 566 return;; 567 567 esac 568 568 elif [ $MYLANG = "en" ] ; then 569 case $ RETin569 case $status in 570 570 0) return;; 571 571 1) echo "rsync error : Syntax or usage error " … … 604 604 30) echo "rsync error : Timeout in data send/receive " 605 605 return;; 606 *) echo "rsync error : return code of rsync unknown :" $ RET606 *) echo "rsync error : return code of rsync unknown :" $status 607 607 return;; 608 608 esac … … 624 624 fi 625 625 626 typeset RET626 typeset status 627 627 628 628 echo cp $@ > out_rsync 2>&1 629 629 \cp $@ >> out_rsync 2>&1 630 RET=$?631 632 if [ ${ RET} -gt 0 ] ; then630 status=$? 631 632 if [ ${status} -gt 0 ] ; then 633 633 echo "IGCM_sys_Cp : error." 634 634 cat out_rsync … … 649 649 fi 650 650 651 typeset RET651 typeset status 652 652 653 653 echo rm $@ > out_rsync 2>&1 654 654 \rm $@ >> out_rsync 2>&1 655 RET=$?656 657 if [ ${ RET} -gt 0 ] ; then655 status=$? 656 657 if [ ${status} -gt 0 ] ; then 658 658 echo "IGCM_sys_Rm : error." 659 659 cat out_rsync … … 691 691 if [ $DRYRUN = 0 ]; then 692 692 693 typeset RET693 typeset status 694 694 695 695 echo mv $@ > out_rsync 2>&1 696 696 \mv $@ >> out_rsync 2>&1 697 RET=$?698 699 if [ ${ RET} -gt 0 ] ; then697 status=$? 698 699 if [ ${status} -gt 0 ] ; then 700 700 echo "IGCM_sys_Mv : error in mv." 701 701 cat out_rsync … … 726 726 fi 727 727 728 typeset RET728 typeset status 729 729 730 730 # Only if we use rsync … … 733 733 #USUAL WAY 734 734 rcp -r $1 gaya:$2 > out_rsync 2>&1 735 RET=$?736 737 if [ ${ RET} -gt 0 ] ; then735 status=$? 736 737 if [ ${status} -gt 0 ] ; then 738 738 echo "IGCM_sys_Put_Dir : error." 739 739 cat out_rsync … … 768 768 # fi 769 769 770 typeset RET770 typeset status 771 771 772 772 #USUAL WAY 773 773 rcp -rp gaya:$1 $2 > out_rsync 2>&1 774 RET=$?775 776 if [ ${ RET} -gt 0 ] ; then774 status=$? 775 776 if [ ${status} -gt 0 ] ; then 777 777 echo "IGCM_sys_Get_Dir : error." 778 778 cat out_rsync … … 803 803 fi 804 804 805 typeset RET805 typeset status 806 806 807 807 #USUAL WAY 808 808 rcp -r ${MASTER}:$1 $2 > out_rsync 2>&1 809 RET=$?810 811 if [ ${ RET} -gt 0 ] ; then809 status=$? 810 811 if [ ${status} -gt 0 ] ; then 812 812 echo "IGCM_sys_Get_Master : error." 813 813 cat out_rsync … … 837 837 fi 838 838 839 typeset RET839 typeset status 840 840 # 841 841 if [ X${JobType} = XRUN ] ; then … … 848 848 # USUAL WAY 849 849 mfput $1 $2 > out_rsync 2>&1 850 RET=$?850 status=$? 851 851 852 852 # #RSYNC WITH NETWORK RSH CALL … … 858 858 # ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> out_rsync 2>&1 859 859 860 # RET=$?861 # IGCM_sys_Rsync_out $ RET860 # status=$? 861 # IGCM_sys_Rsync_out $status 862 862 863 863 # ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk out_rsync 864 # (( RET=RET+$? ))865 866 if [ ${ RET} -gt 0 ] ; then864 # (( status=status+$? )) 865 866 if [ ${status} -gt 0 ] ; then 867 867 echo "IGCM_sys_Put_Out : error." 868 868 cat out_rsync … … 870 870 # 871 871 mfput $1 $2 > out_rsync 2>&1 872 RET=$?872 status=$? 873 873 # 874 if [ ${ RET} -gt 0 ] ; then874 if [ ${status} -gt 0 ] ; then 875 875 echo "IGCM_sys_Put_Out : error." 876 876 IGCM_debug_Print 1 "mfput failed twice. You have a problem" … … 894 894 IGCM_debug_PushStack "IGCM_sys_Get" $@ 895 895 896 typeset DEST RETdm_liste ifile target896 typeset DEST status dm_liste ifile target 897 897 898 898 if ( $DEBUG_sys ) ; then … … 910 910 # test if the (first) file is present in the old computation : 911 911 IGCM_sys_TestFileArchive ${dm_liste[0]} 912 RET=$?913 if [ ${ RET} -gt 0 ] ; then912 status=$? 913 if [ ${status} -gt 0 ] ; then 914 914 echo "IGCM_sys_Get, ERROR : regular file ${dm_liste[0]} DOES NOT EXIST ." 915 915 IGCM_debug_Exit "IGCM_sys_Get" … … 942 942 # ${RSYNC} ${RSYNC_opt} ${dm_liste} ${RUN_DIR}/${DEST} >> out_rsync 2>&1 943 943 944 # RET=$?945 # IGCM_sys_Rsync_out $ RET944 # status=$? 945 # IGCM_sys_Rsync_out $status 946 946 947 947 # ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk out_rsync 948 # (( RET=RET+$? ))948 # (( status=status+$? )) 949 949 950 950 else … … 974 974 fi 975 975 976 typeset RET976 typeset status 977 977 # 978 978 rsh gaya exec /bin/ksh <<EOF … … 984 984 /bin/chmod -R u+w ${R_SAVE}/${1} 985 985 EOF 986 RET=$?987 988 if [ ${ RET} -gt 0 ] ; then986 status=$? 987 988 if [ ${status} -gt 0 ] ; then 989 989 echo "IGCM_sys_Put_Dods : error." 990 990 IGCM_debug_Exit "IGCM_sys_Put_Dods"
Note: See TracChangeset
for help on using the changeset viewer.