Changeset 16676
- Timestamp:
- 06/03/13 22:37:25 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/QuickLook/RunGanymed.sh
r15522 r16676 5 5 printprocesslog "INFO starting $0" 6 6 7 dsfile=$1 8 ra=$2 9 dec=$3 7 # get and check variables 8 if ! [ "$1" = "" ] 9 then 10 dsfile=$1 11 ra=$2 12 dec=$3 13 fi 14 15 if [ "$dsfile" = "" ] 16 then 17 echo "ERROR variable dsfile empty." 18 printprocesslog "ERROR variable dsfile empty." 19 fi 20 21 if [ "$ra" = "" ] 22 then 23 echo "ERROR variable ra empty." 24 printprocesslog "ERROR variable ra empty." 25 fi 26 27 if [ "$dec" = "" ] 28 then 29 echo "ERROR variable dec empty." 30 printprocesslog "ERROR variable dec empty." 31 fi 10 32 11 33 outpath=`dirname $dsfile | sed -e 's/datasets/ganymed/'` … … 16 38 logfile=$output"-ganymed.log" 17 39 18 mars=/home/fact/SW.automatic.processing/Mars.svn.2013.04.2940 #mars=/home/fact/SW.automatic.processing/Mars.svn.2013.04.29 19 41 cd $mars 20 42 … … 24 46 #echo "INFO starting ganymed.C for dataset "$dsfile 25 47 48 printprocesslog "INFO command: root -q -b fact/analysis/ganymed.C\("\"$dsfile\""\,"\"$output\""\,$ra\,$dec\) | tee $logfile | intgrep" 26 49 check1=`root -q -b fact/analysis/ganymed.C\("\"$dsfile\""\,"\"$output\""\,$ra\,$dec\) | tee $logfile | intgrep` 27 50 28 51 case $check1 in 29 0) printprocesslog "INFO ganymed was successful for dataset "$dsfile" ra "$ra" dec "$dec" (check1=$check1)"52 0) printprocesslog "INFO ganymed.C was successful for dataset "$dsfile" ra "$ra" dec "$dec" (check1=$check1)" 30 53 ;; 31 54 *) printprocesslog "ERROR ganymed.C failed for dataset "$dsfile" ra "$ra" dec "$dec" (check1=$check1)"
Note:
See TracChangeset
for help on using the changeset viewer.