Changeset 18328 for trunk


Ignore:
Timestamp:
08/31/15 01:53:15 (9 years ago)
Author:
Daniela Dorner
Message:
commented-out what is needed if daq is unavailable
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Transfer/ZipRawData.sh

    r17905 r18328  
    1515   finish
    1616fi
     17# if daq unavailable
     18#if ! ls /newdaq/raw >/dev/null 2>&1
     19#then
     20#   printprocesslog "ERROR /newdaq/raw is not available."
     21#   finish
     22#fi
    1723
    1824# get dates
    1925if [ "$certaindate" != "" ]
    2026then
    21    checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`
    22    if [ "$checkstring" = "" ]
    23    then
    24       echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"
    25       finish
    26    fi
    2727   getdates $certaindate
    2828else
     
    4545   echo "" >> $logfile 2>&1
    4646   rawdir=/daq/raw/$date
     47#   rawdir=/newdaq/raw/$date #if daq unavailable
    4748   echo `date`": processing files in "$rawdir >> $logfile 2>&1
    4849   printprocesslog "INFO processing files in "$rawdir
     
    104105         zipfile=`echo $file | sed -e 's/daq/loc_data/g' -e 's/raw/zipraw/' `
    105106         zipfiletmp=`echo $file | sed -e 's/daq/loc_data/g' -e 's/raw/zipraw/' -e 's/fits.fz/fits.fz.tmp/'`
     107#         # if daq unavailable
     108#         zipfile=`echo $file | sed -e 's/newdaq/loc_data/g' -e 's/raw/zipraw/' `
     109#         zipfiletmp=`echo $file | sed -e 's/newdaq/loc_data/g' -e 's/raw/zipraw/' -e 's/fits.fz/fits.fz.tmp/'`
     110         
    106111         # check if file on data already exists
    107112         if [ -e $zipfile ]
     
    141146         zipfile=`echo $file | sed -e 's/daq/loc_data/g' -e 's/raw/zipraw/' -e 's/fits/fits.gz/'`
    142147         zipfiletmp=`echo $file | sed -e 's/daq/loc_data/g' -e 's/raw/zipraw/' -e 's/fits/fits.tmp.gz/'`
     148#         # if daq unavailable
     149#         zipfile=`echo $file | sed -e 's/newdaq/loc_data/g' -e 's/raw/zipraw/' -e 's/fits/fits.gz/'`
     150#         zipfiletmp=`echo $file | sed -e 's/newdaq/loc_data/g' -e 's/raw/zipraw/' -e 's/fits/fits.tmp.gz/'`
     151         
    143152         # check if zipped file already exists
    144153         if [ -e $zipfile ]
Note: See TracChangeset for help on using the changeset viewer.