Ignore:
Timestamp:
Oct 20, 2011, 11:07:40 AM (13 years ago)
Author:
torrento
Message:

version adaptee a grid engin (ana)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BAORadio/AmasNancay/trunk/proc_specmfib.sh

    r575 r579  
    114114
    115115#Path where the job will do temporary IO
    116 if [ ${ENVIRONMENT} = "INTERACTIVE" ]; then
    117     iojobpath="/sps/baoradio/AmasNancay/JEC"
    118     $MKDIR -p $iojobpath
    119 elif [ ${ENVIRONMENT} = "BATCH" ] ; then
    120     iojobpath=${TMPBATCH}
    121 else
    122     $ECHO "FATAL (${scriptName}): environment is ${ENVIRONMENT} not allowed"
    123     touch ${tmppublicpath}/proc_script.finished
    124     exit 1
    125 fi
     116. ${SCRIPTPATH}/set_iojobpath.sh
     117iojobpath=$(set_iojobpath)
    126118cd ${iojobpath}
    127119
     
    161153  $CAT ${OUT1}
    162154  $ECHO "DEBUG (${scriptName}): END"
    163 #JEC 29/9/11 avoid finished stuff
    164 #  touch ${tmppublicpath}/proc_script.finished
    165155  exit 1
    166156fi
     
    173163  $CAT ${OUT1}
    174164  $ECHO "DEBUG (${scriptName}): END"
    175 #JEC 29/9/11 avoid finished stuff
    176 #  touch ${tmppublicpath}/proc_script.finished
    177165  exit 1
    178166fi
     
    208196          $ECHO "FATAL (${scriptName}): error while iget:"
    209197          $ECHO $igetStatus
    210 #JEC 29/9/11 avoid finished stuff
    211 #         touch ${tmppublicpath}/proc_script.finished
    212198          exit 1
    213199      fi
     
    250236if [ ${#cycleArray[*]} -eq 0 -o ${#filesArray[*]} -eq 0 ]; then
    251237   $ECHO "FATAL (${scriptName}): no header file selected (${#cycleArray[*]}, ${#filesArray[*]})"
    252 #JEC 29/9/11 avoid finished stuff
    253 #   touch ${tmppublicpath}/proc_script.finished
    254238   exit 1
    255239else
     
    374358    $ECHO "FATAL (${scriptName}): type of processing"
    375359    usage
    376 #JEC 29/9/11 avoid finished stuff
    377 #    touch ${tmppublicpath}/proc_script.finished
    378360    exit 1
    379361    ;;
     
    436418if [ ! -e $prg ]; then
    437419    $ECHO "FATAL (${scriptName}): $prg not found"
    438 #JEC 29/9/11 avoid finished stuff
    439 #    touch ${tmppublicpath}/proc_script.finished
    440420    exit 1
    441421fi
     
    467447        $ECHO "FATAL (${scriptName}): error while iget:"
    468448        $ECHO $igetStatus
    469 #JEC 29/9/11 avoid finished stuff
    470 #       touch ${tmppublicpath}/${jobBatchName}.finished
    471449        exit 1
    472450    fi
     
    545523        $ECHO "FATAL (${scriptName}): error while get signals"
    546524        $ECHO $getSignals
    547 #JEC 29/9/11 avoid finished stuff
    548 #       touch ${tmppublicpath}/${jobBatchName}.finished
    549525        exit 1
    550526    fi
     
    588564#
    589565$ECHO "DEBUG (${scriptName}): END loop on cycles"
    590 #
    591 #JEC 29/9/11 avoid finished stuff
    592 #touch ${tmppublicpath}/proc_script.finished
     566
    593567exit 0
Note: See TracChangeset for help on using the changeset viewer.