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