Changeset 714 for trunk/libIGCM/libIGCM_sys/libIGCM_sys_cesium.ksh
- Timestamp:
- 10/12/12 10:11:24 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_sys/libIGCM_sys_cesium.ksh
r705 r714 1630 1630 echo "IGCM_sys_ncap2 :" $@ 1631 1631 fi 1632 ncap2 "$@" 1633 if [ $? -gt 0 ] ; then 1634 echo "IGCM_sys_ncap2 : erreur ${@}." 1635 IGCM_debug_Exit "ncap2" 1632 1633 typeset NB_ESSAI DELAI status i 1634 # number of tentative 1635 NB_ESSAI=3 1636 # time delay between tentative 1637 DELAI=2 1638 1639 i=0 1640 while [ $i -lt $NB_ESSAI ] ; do 1641 ncap2 "$@" > out_rsync 2>&1 1642 status=$? 1643 if [ ${status} -gt 0 ] ; then 1644 IGCM_debug_Print 2 "IGCM_sys_ncap2 : error code ${status}" 1645 cat out_rsync 1646 \rm out_rsync 1647 IGCM_debug_Print 2 "IGCM_sys_ncap2 : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 1648 else 1649 \rm out_rsync 1650 break 1651 fi 1652 (( i = i + 1 )) 1653 done 1654 1655 if [ ${status} -gt 0 ] ; then 1656 echo "IGCM_sys_ncap2 : ncap2 error" 1657 IGCM_debug_Exit "ncap2" 1636 1658 fi 1637 1659 … … 1644 1666 echo "IGCM_sys_ncatted :" $@ 1645 1667 fi 1646 ncatted "$@" 1647 if [ $? -gt 0 ] ; then 1648 echo "IGCM_sys_ncatted : erreur ${@}." 1649 IGCM_debug_Exit "ncatted" 1668 1669 typeset NB_ESSAI DELAI status i 1670 # number of tentative 1671 NB_ESSAI=3 1672 # time delay between tentative 1673 DELAI=2 1674 1675 i=0 1676 while [ $i -lt $NB_ESSAI ] ; do 1677 ncatted "$@" > out_rsync 2>&1 1678 status=$? 1679 if [ ${status} -gt 0 ] ; then 1680 IGCM_debug_Print 2 "IGCM_sys_ncatted : error code ${status}" 1681 cat out_rsync 1682 \rm out_rsync 1683 IGCM_debug_Print 2 "IGCM_sys_ncatted : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 1684 else 1685 \rm out_rsync 1686 break 1687 fi 1688 (( i = i + 1 )) 1689 done 1690 1691 if [ ${status} -gt 0 ] ; then 1692 echo "IGCM_sys_ncatted : ncatted error" 1693 IGCM_debug_Exit "ncatted" 1650 1694 fi 1651 1695 … … 1658 1702 echo "IGCM_sys_ncbo :" $@ 1659 1703 fi 1660 ncbo $@ 1661 if [ $? -gt 0 ] ; then 1662 echo "IGCM_sys_ncbo : erreur ${@}." 1663 IGCM_debug_Exit "ncbo" 1704 1705 typeset NB_ESSAI DELAI status i 1706 # number of tentative 1707 NB_ESSAI=3 1708 # time delay between tentative 1709 DELAI=2 1710 1711 i=0 1712 while [ $i -lt $NB_ESSAI ] ; do 1713 ncbo $@ > out_rsync 2>&1 1714 status=$? 1715 if [ ${status} -gt 0 ] ; then 1716 IGCM_debug_Print 2 "IGCM_sys_ncbo : error code ${status}" 1717 cat out_rsync 1718 \rm out_rsync 1719 IGCM_debug_Print 2 "IGCM_sys_ncbo : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 1720 else 1721 \rm out_rsync 1722 break 1723 fi 1724 (( i = i + 1 )) 1725 done 1726 1727 if [ ${status} -gt 0 ] ; then 1728 echo "IGCM_sys_ncbo : ncbo error" 1729 IGCM_debug_Exit "ncbo" 1664 1730 fi 1665 1731 … … 1672 1738 echo "IGCM_sys_ncdiff :" $@ 1673 1739 fi 1674 ncdiff $@ 1675 if [ $? -gt 0 ] ; then 1676 echo "IGCM_sys_ncdiff : erreur ${@}." 1677 IGCM_debug_Exit "ncdiff" 1740 1741 typeset NB_ESSAI DELAI status i 1742 # number of tentative 1743 NB_ESSAI=3 1744 # time delay between tentative 1745 DELAI=2 1746 1747 i=0 1748 while [ $i -lt $NB_ESSAI ] ; do 1749 ncdiff $@ > out_rsync 2>&1 1750 status=$? 1751 if [ ${status} -gt 0 ] ; then 1752 IGCM_debug_Print 2 "IGCM_sys_ncdiff : error code ${status}" 1753 cat out_rsync 1754 \rm out_rsync 1755 IGCM_debug_Print 2 "IGCM_sys_ncdiff : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 1756 else 1757 \rm out_rsync 1758 break 1759 fi 1760 (( i = i + 1 )) 1761 done 1762 1763 if [ ${status} -gt 0 ] ; then 1764 echo "IGCM_sys_ncdiff : ncdiff error" 1765 IGCM_debug_Exit "ncdiff" 1678 1766 fi 1679 1767 … … 1686 1774 echo "IGCM_sys_ncea :" $@ 1687 1775 fi 1688 ncea $@ 1689 if [ $? -gt 0 ] ; then 1690 echo "IGCM_sys_ncea : erreur ${@}." 1691 IGCM_debug_Exit "ncea" 1776 1777 typeset NB_ESSAI DELAI status i 1778 # number of tentative 1779 NB_ESSAI=3 1780 # time delay between tentative 1781 DELAI=2 1782 1783 i=0 1784 while [ $i -lt $NB_ESSAI ] ; do 1785 ncea $@ > out_rsync 2>&1 1786 status=$? 1787 if [ ${status} -gt 0 ] ; then 1788 IGCM_debug_Print 2 "IGCM_sys_ncea : error code ${status}" 1789 cat out_rsync 1790 \rm out_rsync 1791 IGCM_debug_Print 2 "IGCM_sys_ncea : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 1792 else 1793 \rm out_rsync 1794 break 1795 fi 1796 (( i = i + 1 )) 1797 done 1798 1799 if [ ${status} -gt 0 ] ; then 1800 echo "IGCM_sys_ncea : ncea error" 1801 IGCM_debug_Exit "ncea" 1692 1802 fi 1693 1803 … … 1700 1810 echo "IGCM_sys_ncecat :" $@ 1701 1811 fi 1702 ncecat $@ 1703 if [ $? -gt 0 ] ; then 1704 echo "IGCM_sys_ncecat : erreur ${@}." 1705 IGCM_debug_Exit "ncecat" 1812 1813 typeset NB_ESSAI DELAI status i 1814 # number of tentative 1815 NB_ESSAI=3 1816 # time delay between tentative 1817 DELAI=2 1818 1819 i=0 1820 while [ $i -lt $NB_ESSAI ] ; do 1821 ncecat $@ > out_rsync 2>&1 1822 status=$? 1823 if [ ${status} -gt 0 ] ; then 1824 IGCM_debug_Print 2 "IGCM_sys_ncecat : error code ${status}" 1825 cat out_rsync 1826 \rm out_rsync 1827 IGCM_debug_Print 2 "IGCM_sys_ncecat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 1828 else 1829 \rm out_rsync 1830 break 1831 fi 1832 (( i = i + 1 )) 1833 done 1834 1835 if [ ${status} -gt 0 ] ; then 1836 echo "IGCM_sys_ncecat : ncecat error" 1837 IGCM_debug_Exit "ncecat" 1706 1838 fi 1707 1839 … … 1714 1846 echo "IGCM_sys_ncflint :" $@ 1715 1847 fi 1716 ncflint $@ 1717 if [ $? -gt 0 ] ; then 1718 echo "IGCM_sys_ncflint : erreur ${@}." 1719 IGCM_debug_Exit "ncflint" 1848 1849 typeset NB_ESSAI DELAI status i 1850 # number of tentative 1851 NB_ESSAI=3 1852 # time delay between tentative 1853 DELAI=2 1854 1855 i=0 1856 while [ $i -lt $NB_ESSAI ] ; do 1857 ncflint $@ > out_rsync 2>&1 1858 status=$? 1859 if [ ${status} -gt 0 ] ; then 1860 IGCM_debug_Print 2 "IGCM_sys_ncflint : error code ${status}" 1861 cat out_rsync 1862 \rm out_rsync 1863 IGCM_debug_Print 2 "IGCM_sys_ncflint : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 1864 else 1865 \rm out_rsync 1866 break 1867 fi 1868 (( i = i + 1 )) 1869 done 1870 1871 if [ ${status} -gt 0 ] ; then 1872 echo "IGCM_sys_ncflint : ncflint error" 1873 IGCM_debug_Exit "ncflint" 1720 1874 fi 1721 1875 … … 1728 1882 echo "IGCM_sys_ncks :" $@ 1729 1883 fi 1730 ncks $@ 1731 if [ $? -gt 0 ] ; then 1732 echo "IGCM_sys_ncks : erreur ${@}." 1733 IGCM_debug_Exit "ncks" 1884 1885 typeset NB_ESSAI DELAI status i 1886 # number of tentative 1887 NB_ESSAI=3 1888 # time delay between tentative 1889 DELAI=2 1890 1891 i=0 1892 while [ $i -lt $NB_ESSAI ] ; do 1893 ncks $@ > out_rsync 2>&1 1894 status=$? 1895 if [ ${status} -gt 0 ] ; then 1896 IGCM_debug_Print 2 "IGCM_sys_ncks : error code ${status}" 1897 cat out_rsync 1898 \rm out_rsync 1899 IGCM_debug_Print 2 "IGCM_sys_ncks : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 1900 else 1901 \rm out_rsync 1902 break 1903 fi 1904 (( i = i + 1 )) 1905 done 1906 1907 if [ ${status} -gt 0 ] ; then 1908 echo "IGCM_sys_ncks : ncks error" 1909 IGCM_debug_Exit "ncks" 1734 1910 fi 1735 1911 … … 1742 1918 echo "IGCM_sys_ncpdq :" $@ 1743 1919 fi 1744 ncpdq $@ 1745 if [ $? -gt 0 ] ; then 1746 echo "IGCM_sys_ncpdq : erreur ${@}." 1747 IGCM_debug_Exit "ncpdq" 1920 1921 typeset NB_ESSAI DELAI status i 1922 # number of tentative 1923 NB_ESSAI=3 1924 # time delay between tentative 1925 DELAI=2 1926 1927 i=0 1928 while [ $i -lt $NB_ESSAI ] ; do 1929 ncpdq $@ > out_rsync 2>&1 1930 status=$? 1931 if [ ${status} -gt 0 ] ; then 1932 IGCM_debug_Print 2 "IGCM_sys_ncpdq : error code ${status}" 1933 cat out_rsync 1934 \rm out_rsync 1935 IGCM_debug_Print 2 "IGCM_sys_ncpdq : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 1936 else 1937 \rm out_rsync 1938 break 1939 fi 1940 (( i = i + 1 )) 1941 done 1942 1943 if [ ${status} -gt 0 ] ; then 1944 echo "IGCM_sys_ncpdq : ncpdq error" 1945 IGCM_debug_Exit "ncpdq" 1748 1946 fi 1749 1947 … … 1756 1954 echo "IGCM_sys_ncra :" $@ 1757 1955 fi 1758 ncra $@ 1759 if [ $? -gt 0 ] ; then 1760 echo "IGCM_sys_ncra : erreur ${@}." 1761 IGCM_debug_Exit "ncra" 1956 1957 typeset NB_ESSAI DELAI status i 1958 # number of tentative 1959 NB_ESSAI=3 1960 # time delay between tentative 1961 DELAI=2 1962 1963 i=0 1964 while [ $i -lt $NB_ESSAI ] ; do 1965 ncra $@ > out_rsync 2>&1 1966 status=$? 1967 if [ ${status} -gt 0 ] ; then 1968 IGCM_debug_Print 2 "IGCM_sys_ncra : error code ${status}" 1969 cat out_rsync 1970 \rm out_rsync 1971 IGCM_debug_Print 2 "IGCM_sys_ncra : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 1972 else 1973 \rm out_rsync 1974 break 1975 fi 1976 (( i = i + 1 )) 1977 done 1978 1979 if [ ${status} -gt 0 ] ; then 1980 echo "IGCM_sys_ncra : ncra error" 1981 IGCM_debug_Exit "ncra" 1762 1982 fi 1763 1983 … … 1770 1990 echo "IGCM_sys_ncrcat :" $@ 1771 1991 fi 1772 ncrcat $@ 1773 if [ $? -gt 0 ] ; then 1774 echo "IGCM_sys_ncrcat : erreur ${@}." 1775 # IGCM_debug_Exit "ncrcat" 1992 1993 typeset NB_ESSAI DELAI status i 1994 # number of tentative 1995 NB_ESSAI=3 1996 # time delay between tentative 1997 DELAI=2 1998 1999 i=0 2000 while [ $i -lt $NB_ESSAI ] ; do 2001 ncrcat $@ > out_rsync 2>&1 2002 status=$? 2003 if [ ${status} -gt 0 ] ; then 2004 IGCM_debug_Print 2 "IGCM_sys_ncrcat : error code ${status}" 2005 cat out_rsync 2006 \rm out_rsync 2007 IGCM_debug_Print 2 "IGCM_sys_ncrcat : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2008 else 2009 \rm out_rsync 2010 break 2011 fi 2012 (( i = i + 1 )) 2013 done 2014 2015 if [ ${status} -gt 0 ] ; then 2016 echo "IGCM_sys_ncrcat : ncrcat error" 2017 #IGCM_debug_Exit "ncrcat" 1776 2018 fi 1777 2019 … … 1784 2026 echo "IGCM_sys_ncrename :" $@ 1785 2027 fi 1786 ncrename $@ 1787 if [ $? -gt 0 ] ; then 1788 echo "IGCM_sys_ncrename : erreur ${@}." 1789 IGCM_debug_Exit "ncrename" 2028 2029 typeset NB_ESSAI DELAI status i 2030 # number of tentative 2031 NB_ESSAI=3 2032 # time delay between tentative 2033 DELAI=2 2034 2035 i=0 2036 while [ $i -lt $NB_ESSAI ] ; do 2037 ncrename $@ > out_rsync 2>&1 2038 status=$? 2039 if [ ${status} -gt 0 ] ; then 2040 IGCM_debug_Print 2 "IGCM_sys_ncrename : error code ${status}" 2041 cat out_rsync 2042 \rm out_rsync 2043 IGCM_debug_Print 2 "IGCM_sys_ncrename : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2044 else 2045 \rm out_rsync 2046 break 2047 fi 2048 (( i = i + 1 )) 2049 done 2050 2051 if [ ${status} -gt 0 ] ; then 2052 echo "IGCM_sys_ncrename : ncrename error" 2053 IGCM_debug_Exit "ncrename" 1790 2054 fi 1791 2055 … … 1798 2062 echo "IGCM_sys_ncwa :" $@ 1799 2063 fi 1800 ncwa $@ 1801 if [ $? -gt 0 ] ; then 1802 echo "IGCM_sys_ncwa : erreur ${@}." 1803 IGCM_debug_Exit "ncwa" 2064 2065 typeset NB_ESSAI DELAI status i 2066 # number of tentative 2067 NB_ESSAI=3 2068 # time delay between tentative 2069 DELAI=2 2070 2071 i=0 2072 while [ $i -lt $NB_ESSAI ] ; do 2073 ncwa $@ > out_rsync 2>&1 2074 status=$? 2075 if [ ${status} -gt 0 ] ; then 2076 IGCM_debug_Print 2 "IGCM_sys_ncwa : error code ${status}" 2077 cat out_rsync 2078 \rm out_rsync 2079 IGCM_debug_Print 2 "IGCM_sys_ncwa : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 2080 else 2081 \rm out_rsync 2082 break 2083 fi 2084 (( i = i + 1 )) 2085 done 2086 2087 if [ ${status} -gt 0 ] ; then 2088 echo "IGCM_sys_ncwa : ncwa error" 2089 IGCM_debug_Exit "ncwa" 1804 2090 fi 1805 2091 … … 1815 2101 echo "IGCM_sys_cdo :" $@ 1816 2102 fi 1817 \cdo $@ 1818 if [ $? -gt 0 ] ; then 1819 echo "IGCM_sys_cdo : erreur ${@}." 2103 2104 typeset status 2105 2106 \cdo $@ > out_rsync 2>&1 2107 status=$? 2108 if [ ${status} -gt 0 ] ; then 2109 echo "IGCM_sys_cdo : error code ${status}" 2110 cat out_rsync 2111 \rm out_rsync 1820 2112 IGCM_debug_PopStack "IGCM_sys_cdo" 1821 2113 return 1
Note: See TracChangeset
for help on using the changeset viewer.