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

    r575 r579  
    2222  $ECHO "usage: ${script
    2323Name} <source:ex. Abell85> <date:YYYYMMDD>"
    24 #JEC 29/9/11 avoid finished stuff
    25 #  touch ${tmppublicpath}/getscafiles.finished
    2624  exit 0
    2725fi
     
    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}/getscafiles.finished
    57    exit 1
    58 fi
     46. ${SCRIPTPATH}/set_iojobpath.sh
     47iojobpath=$(set_iojobpath)
    5948cd ${iojobpath}
    6049
     
    8473#     $RM ${tmppublicpath}/statusdaq.finished
    8574    $ECHO "FATAL (${scriptName}): ${OUT1} is missing or not readable..."
    86 #JEC 29/9/11 avoid finished stuff
    87 #    touch ${tmppublicpath}/getscafiles.finished
    8875    exit 1
    8976fi
     
    9380if [ "<${nfiles}>" = "<>" ]; then
    9481    $ECHO "FATAL (${scriptName}): No run found for <${sourceRadio}> and date <${dateDAQ}>"
    95 #JEC 29/9/11 avoid finished stuff
    96 #    touch ${tmppublicpath}/getscafiles.finished
    9782    exit 1
    9883fi
     
    116101if [ "<$status>" != "<>" ]; then
    117102    $ECHO "FATAL (${scriptName}): connot proceed further with $sourceRadio $dateDAQ"
    118 #JEC 29/9/11 avoid finished stuff
    119 #    touch ${tmppublicpath}/getscafiles.finished
    120103    exit 1
    121104fi
     
    153136  $ECHO "FATAL (${scriptName}): error while iget:"
    154137  $ECHO $igetStatus
    155 #JEC 29/9/11 avoid finished stuff
    156 #  touch ${tmppublicpath}/getscafiles.finished
    157138  exit 1
    158139fi
     
    160141$RM -f $OUT4
    161142
    162 touch ${tmppublicpath}/getscafiles.finished
    163143exit 0
Note: See TracChangeset for help on using the changeset viewer.