Ignore:
Timestamp:
10/07/13 16:35:45 (11 years ago)
Author:
labetoulle
Message:

RunChecker? :

  • Introduction of getopts to process command line options
  • new option -r to check running simulations

(#131)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_check/libIGCM_check.ksh

    r954 r955  
    136136    SEARCH_DIR=${WORKDIR} 
    137137    if [ ${TargetUsr} != ${CurrentUsr} ] ; then 
    138       echo $SEARCH_DIR 
    139138      SEARCH_DIR=$( IGCM_check_ChangeUsr ${SEARCH_DIR} ) 
    140       echo $SEARCH_DIR 
    141139    fi 
    142140    echo "${JobName} not in Catalog, we'll try to find it in ${SEARCH_DIR}" 
     
    163161    read Choice 
    164162    if [ X${Choice} == Xq ] ; then 
    165       exit 
     163      return 1 
    166164    else 
    167165      fg_new=true 
     
    173171  case ${NbOcc} in 
    174172    0) 
    175       echo "${JobName} not found." 
     173      if ( ${fg_search} ) ; then 
     174        echo "${JobName} not found, neither in catalog nor in \$WORKDIR." 
     175      else 
     176        echo "${JobName} not found in catalog." 
     177      fi 
    176178      echo "You can try : *) '-s' option to automatically search your \$WORKDIR ; " 
    177179      echo "              *) '-p' option to provide the directory (absolute path) " 
    178180      echo "                      containing the config.card ; " 
    179181      echo "              *)  manually editing your ${SimuCatalog}." 
    180       exit ;; 
     182      return 1 ;; 
    181183    1) 
    182184      if ( ${fg_new} ) ; then 
     
    197199      else 
    198200        echo "${JobName} not in Catalog." 
    199         exit 
     201        return 1 
    200202      fi 
    201203      ;; 
Note: See TracChangeset for help on using the changeset viewer.