Changeset 18433 for trunk


Ignore:
Timestamp:
02/13/16 17:42:50 (9 years ago)
Author:
Daniela Dorner
Message:
implemented usage of certaindate
File:
1 edited

Legend:

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

    r17890 r18433  
    1313date >> $logfile 2>&1
    1414
    15 ## check if script is already running
    16 #lockfile=$lockpath/lock-$program.txt
    17 #checklock
     15
     16# check if only a certain date should be processed
     17#  (feature for manual speedup)
     18if [ "$certaindate" != "" ]
     19then
     20   printprocesslog "INFO process only data of "$certaindate
     21   echo "INFO process only data of "$certaindate
     22   specialnight=`echo $certaindate | sed -e 's/\///g'`
     23fi
     24
    1825
    1926# stop transfer when less than 100 GB are left
     
    4451   lppath="/loc_data/zipraw/"$nightpath
    4552   nightrun=$night"_"`printf %03d $runid`
     53
     54   # continue if only special night should be processed for manual speedup
     55   if [ "$specialnight" != "" ]
     56   then
     57      if [ $night -ne $specialnight ]
     58      then
     59         printprocesslog "INFO Treat only "$specialnight" -> continue for "$night
     60         echo "INFO Treat only "$specialnight" -> continue for "$night
     61         continue
     62      else
     63         echo "INFO Transfer "$nightrun
     64      fi
     65   fi
     66
    4667   lpfile=`ssh fact@161.72.93.131 "find $lppath -type f -regex '.*$nightrun[.]fits[.][fg]z'"`
    4768   if [ "$lpfile" == "" ]
Note: See TracChangeset for help on using the changeset viewer.