Ignore:
Timestamp:
03/02/15 17:43:15 (9 years ago)
Author:
labetoulle
Message:

Move common functions to common module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/ConsoGENCMIP6/launch_conso.sh

    r2424 r2427  
    2323# Main script to get data 
    2424# ======================= 
    25 bin/conso_gencmip6.py 
     25script="conso_gencmip6" 
     26printf "${script}\n" 
     27echo "--------------------" 
     28bin/${script}.py 
     29rc=$? 
     30if [ ${rc} -ne 0 ] ; then 
     31  echo "${script} terminated abnormally" 
     32  exit 
     33else 
     34  echo "${script} OK" 
     35fi 
    2636 
    2737# Plot daily consumption 
     
    2939# -f : plot the whole period of the project 
    3040# -d : copy plot on dods 
    31 bin/plot_bilan.py -fd 
     41script="plot_bilan" 
     42printf "\n${script}\n" 
     43echo "--------------------" 
     44bin/${script}.py -fd 
     45rc=$? 
     46if [ ${rc} -ne 0 ] ; then 
     47  echo "${script} terminated abnormally" 
     48else 
     49  echo "${script} OK" 
     50fi 
     51 
     52script="plot_login" 
     53printf "\n${script}\n" 
     54echo "--------------------" 
     55bin/${script}.py -d 
     56rc=$? 
     57if [ ${rc} -ne 0 ] ; then 
     58  echo "${script} terminated abnormally" 
     59else 
     60  echo "${script} OK" 
     61fi 
     62 
     63script="plot_store" 
     64printf "\n${script}\n" 
     65echo "--------------------" 
     66bin/${script}.py -d 
     67rc=$? 
     68if [ ${rc} -ne 0 ] ; then 
     69  echo "${script} terminated abnormally" 
     70else 
     71  echo "${script} OK" 
     72fi 
     73 
     74printf "\nEnd of script OK\n" 
Note: See TracChangeset for help on using the changeset viewer.