Changeset 17114


Ignore:
Timestamp:
09/06/13 18:08:07 (11 years ago)
Author:
Daniela Dorner
Message:
implemented usage of getdates function
File:
1 edited

Legend:

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

    r15595 r17114  
    1515   finish
    1616fi
    17 # get current hour
    18 hour=`date +%k`
    19 if [ $hour -le 7 ] || [ $hour -ge 19 ]
     17
     18# get dates
     19if [ "$certaindate" != "" ]
    2020then
    21    dates=( `date +%Y/%m/%d --date="-12hour"` )
     21   getdates $certaindate
    2222else
    23    # get last 3, 6 or 9 nights
    24    #dates=( `date +%Y/%m/%d --date="-12hour"` `date +%Y/%m/%d --date="-36hour"` `date +%Y/%m/%d --date="-60hour"` \
    25    dates=( `date +%Y/%m/%d --date="-60hour"` `date +%Y/%m/%d --date="-36hour"` `date +%Y/%m/%d --date="-12hour"` \
    26    #        `date +%Y/%m/%d --date="-84hour"` `date +%Y/%m/%d --date="-108hour"` `date +%Y/%m/%d --date="-132hour"` \
    27    #        `date +%Y/%m/%d --date="-156hour"` `date +%Y/%m/%d --date="-180hour"` `date +%Y/%m/%d --date="-204hour"` \
    28            )
     23   # get all night
     24   #getdates "all"
     25   # get last 3 nights if hour between 7 and 19h, else only current night
     26   getdates 3 7 19
    2927fi
    3028
Note: See TracChangeset for help on using the changeset viewer.