|
Last change
on this file since 13056 was 13055, checked in by Daniela Dorner, 14 years ago |
|
adapted scripts to changes in directory structure
|
-
Property svn:executable
set to
*
|
|
File size:
783 bytes
|
| Line | |
|---|
| 1 | #!/bin/bash
|
|---|
| 2 | #
|
|---|
| 3 |
|
|---|
| 4 | source `dirname $0`/../Sourcefile.sh
|
|---|
| 5 | printprocesslog "INFO starting $0"
|
|---|
| 6 | program=CheckRawFilesAvail
|
|---|
| 7 | step=RawFileAvailISDC
|
|---|
| 8 |
|
|---|
| 9 | set -C
|
|---|
| 10 |
|
|---|
| 11 | # check if script is already running
|
|---|
| 12 | lockfile=$lockpath/lock-$program.txt
|
|---|
| 13 | checklock
|
|---|
| 14 |
|
|---|
| 15 | # get todo list
|
|---|
| 16 | gettodo
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 | for (( s=0 ; s < $num ; s++ ))
|
|---|
| 20 | do
|
|---|
| 21 | night=${primaries[$s+$s]}
|
|---|
| 22 | runid=${primaries[$s+$s+1]}
|
|---|
| 23 |
|
|---|
| 24 | setstatus "start"
|
|---|
| 25 |
|
|---|
| 26 | rawfile=$rawdata/`echo $night | cut -c 1-4`/`echo $night | cut -c 5-6`/`echo $night | cut -c 7-8`/$night"_"`printf %03d $runid`".fits.gz"
|
|---|
| 27 | test -e $rawfile
|
|---|
| 28 | check1=$?
|
|---|
| 29 |
|
|---|
| 30 | case $check1 in
|
|---|
| 31 | 1) printprocesslog "WARN "$rawfile" missing."
|
|---|
| 32 | check=$check1
|
|---|
| 33 | ;;
|
|---|
| 34 | 0) printprocesslog "INFO found rawfile "$rawfile
|
|---|
| 35 | ;;
|
|---|
| 36 | esac
|
|---|
| 37 |
|
|---|
| 38 | setstatus "stop"
|
|---|
| 39 | done
|
|---|
| 40 |
|
|---|
| 41 | finish
|
|---|
| 42 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.