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/getsignalfiles.sh

    r575 r579  
    2424if [ ! $# = 4 ]; then
    2525  $ECHO "usage: ${scriptName} <source:ex. Abell85> <date:YYYYMMDD> first last"
    26 #JEC 29/9/11 avoid finished stuff
    27 #  touch ${tmppublicpath}/getsignalfiles.finished
    2826  exit 0
    2927fi
     
    4644
    4745#Path where the job will do temporary IO
    48 if [ ${ENVIRONMENT} == "INTERACTIVE" ]; then
    49     iojobpath="/sps/baoradio/AmasNancay/JEC"
    50     $MKDIR -p $iojobpath
    51 elif [ ${ENVIRONMENT} == "BATCH" ] ; then
    52     iojobpath=${TMPBATCH}
    53 else
    54    $ECHO "FATAL (${scriptName}): environment is ${ENVIRONMENT} not allowed"
    55 #JEC 29/9/11 avoid finished stuff
    56 #   touch ${tmppublicpath}/getsignalfiles.finished
    57    exit 1
    58 fi
     46. ${SCRIPTPATH}/set_iojobpath.sh
     47iojobpath=$(set_iojobpath)
    5948cd ${iojobpath}
    6049
     
    8675#     $RM ${tmppublicpath}/statusdaq.finished
    8776    $ECHO "FATAL (${scriptName}): ${OUT1} is missing or not readable..."
    88 #JEC 29/9/11 avoid finished stuff
    89 #    touch ${tmppublicpath}/getsignalfiles.finished
    9077    exit 1
    9178fi
     
    9582    $ECHO "FATAL (${scriptName}): No run found for <${sourceRadio}> and date <${dateDAQ}>"
    9683    $CAT $OUT1
    97 #JEC 29/9/11 avoid finished stuff
    98 #    touch ${tmppublicpath}/getsignalfiles.finished
    9984    exit 1
    10085fi
     
    10489if [ ${firstFile} -gt  ${nfiles} ]; then
    10590    $ECHO "FATAL (${scriptName}): ${firstFile} >  ${nfiles}"
    106 #JEC 29/9/11 avoid finished stuff
    107 #    touch ${tmppublicpath}/getsignalfiles.finished
    10891    exit 1
    10992fi
     
    11396if [ ${lastFile} -gt  ${nfiles} ]; then
    11497    $ECHO "FATAL (${scriptName}): ${lastFile} >  ${nfiles}"
    115 #JEC 29/9/11 avoid finished stuff
    116 #    touch ${tmppublicpath}/getsignalfiles.finished
    11798    exit 1
    11899fi
     
    120101if [ ${firstFile} -gt  ${lastFile} ]; then
    121102    $ECHO "FATAL (${scriptName}): ${firstFile} >  ${lastFile}"
    122 #JEC 29/9/11 avoid finished stuff
    123 #    touch ${tmppublicpath}/getsignalfiles.finished
    124103    exit 1
    125104fi
     
    143122       $ECHO "FATAL (${scriptName}): error while iget:"
    144123       $ECHO $igetStatus
    145 #JEC 29/9/11 avoid finished stuff
    146 #       touch ${tmppublicpath}/getsignalfiles.finished
    147124       exit 1
    148125   fi
     
    152129       $ECHO "FATAL (${scriptName}): error while iget:"
    153130       $ECHO $igetStatus
    154 #JEC 29/9/11 avoid finished stuff
    155 #       touch ${tmppublicpath}/getsignalfiles.finished
    156131       exit 1
    157132   fi
     
    159134done
    160135
    161 #JEC 29/9/11 avoid finished stuff
    162 #touch ${tmppublicpath}/getsignalfiles.finished
    163136exit 0
Note: See TracChangeset for help on using the changeset viewer.