source: BAORadio/AmasNancay/trunk/submit2ge-anadriftmaker.sh @ 675

Last change on this file since 675 was 637, checked in by campagne, 12 years ago

first introduction of DRIFT data (jec)

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#!/bin/sh -xv
2
3scriptName="`basename $0`"
4echo "Processing script ${scriptName} at `date`"
5
6#Process cmd line args: the -src option is mandatory (source name as Abell85)
7sourceRadio=
8dateSelected=
9#use -sim option to simulate processing (debug the script as if...)
10simulationMode=""
11while [ $# -gt 0 ]
12do
13  case "$1" in
14      -src)  sourceRadio="$2"; shift;;
15      -date) dateSelected="-date $2"; dateJob="$2";     shift;;
16      -sim) 
17      simulationMode="-sim On"
18      $ECHO "INFO ${scriptName} running in SIMUL mode";;
19        -h)
20        echo >&2 \
21            "usage: $0 -src source -date YYYYMMDD"
22        exit 1;;
23        *)  break;;     # terminate while loop
24    esac
25    shift
26done
27
28
29if [ "<${sourceRadio}>" = "<>" ]; then
30    $ECHO "FATAL: You have forgotten to select the source option (-src)"
31    exit 1
32fi
33
34
35jobBatchName="anadrift-${sourceRadio}${dateJob}"
36
37jobLogName="${jobBatchName}.log.$$"
38
39qsub -P P_baoradio -l sps=1,irods=1,ct=1200,vmem=1000M,fsize=1000M -o ${PWD}/${jobLogName} -j yes -N $jobBatchName -m be -M ${LOGNAME}@lal.in2p3.fr -V <<EOF
40
41${SCRIPTPATH}/anadriftmaker.sh  -src ${sourceRadio} ${dateSelected} ${simulationMode}
42EOF
Note: See TracBrowser for help on using the repository browser.