- Timestamp:
- 08/31/15 01:53:15 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Transfer/ZipRawData.sh
r17905 r18328 15 15 finish 16 16 fi 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 17 23 18 24 # get dates 19 25 if [ "$certaindate" != "" ] 20 26 then 21 checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`22 if [ "$checkstring" = "" ]23 then24 echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"25 finish26 fi27 27 getdates $certaindate 28 28 else … … 45 45 echo "" >> $logfile 2>&1 46 46 rawdir=/daq/raw/$date 47 # rawdir=/newdaq/raw/$date #if daq unavailable 47 48 echo `date`": processing files in "$rawdir >> $logfile 2>&1 48 49 printprocesslog "INFO processing files in "$rawdir … … 104 105 zipfile=`echo $file | sed -e 's/daq/loc_data/g' -e 's/raw/zipraw/' ` 105 106 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 106 111 # check if file on data already exists 107 112 if [ -e $zipfile ] … … 141 146 zipfile=`echo $file | sed -e 's/daq/loc_data/g' -e 's/raw/zipraw/' -e 's/fits/fits.gz/'` 142 147 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 143 152 # check if zipped file already exists 144 153 if [ -e $zipfile ]
Note:
See TracChangeset
for help on using the changeset viewer.