Changeset 17114 for trunk/DataCheck/Transfer
- Timestamp:
- 09/06/13 18:08:07 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Transfer/ZipRawData.sh
r15595 r17114 15 15 finish 16 16 fi 17 # get current hour 18 hour=`date +%k` 19 if [ $hour -le 7 ] || [ $hour -ge 19]17 18 # get dates 19 if [ "$certaindate" != "" ] 20 20 then 21 dates=( `date +%Y/%m/%d --date="-12hour"` )21 getdates $certaindate 22 22 else 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 29 27 fi 30 28
Note:
See TracChangeset
for help on using the changeset viewer.