Ignore:
Timestamp:
06/03/13 22:37:25 (11 years ago)
Author:
Daniela Dorner
Message:
added checking of command line options to allow for usage of sge
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/QuickLook/RunGanymed.sh

    r15522 r16676  
    55printprocesslog "INFO starting $0"
    66
    7 dsfile=$1
    8 ra=$2
    9 dec=$3
     7# get and check variables
     8if ! [ "$1" = "" ]
     9then
     10   dsfile=$1
     11   ra=$2
     12   dec=$3
     13fi
     14
     15if [ "$dsfile" = "" ]
     16then
     17   echo "ERROR variable dsfile empty."
     18   printprocesslog "ERROR variable dsfile empty."
     19fi
     20
     21if [ "$ra" = "" ]
     22then
     23   echo "ERROR variable ra empty."
     24   printprocesslog "ERROR variable ra empty."
     25fi
     26
     27if [ "$dec" = "" ]
     28then
     29   echo "ERROR variable dec empty."
     30   printprocesslog "ERROR variable dec empty."
     31fi
    1032
    1133outpath=`dirname $dsfile | sed -e 's/datasets/ganymed/'`
     
    1638logfile=$output"-ganymed.log"
    1739
    18 mars=/home/fact/SW.automatic.processing/Mars.svn.2013.04.29
     40#mars=/home/fact/SW.automatic.processing/Mars.svn.2013.04.29
    1941cd $mars
    2042
     
    2446#echo "INFO starting ganymed.C for dataset "$dsfile
    2547
     48printprocesslog "INFO command: root -q -b fact/analysis/ganymed.C\("\"$dsfile\""\,"\"$output\""\,$ra\,$dec\) | tee $logfile | intgrep"
    2649check1=`root -q -b fact/analysis/ganymed.C\("\"$dsfile\""\,"\"$output\""\,$ra\,$dec\) | tee $logfile | intgrep`
    2750
    2851case $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)"
    3053        ;;
    3154   *)   printprocesslog "ERROR ganymed.C failed for dataset "$dsfile" ra "$ra" dec "$dec" (check1=$check1)"
Note: See TracChangeset for help on using the changeset viewer.