source: BAORadio/AmasNancay/trunk/submit2ge-anarawonoffmaker.sh @ 598

Last change on this file since 598 was 598, checked in by campagne, 13 years ago

cleaning of the set of scripts, and improve th submit2ge options, and improve analysis (jec)

  • Property svn:executable set to *
File size: 1.2 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=
9dateJob=
10#use -sim option to simulate processing (debug the script as if...)
11simulationMode=""
12while [ $# -gt 0 ]
13do
14  case "$1" in
15      -src)  sourceRadio="$2"; shift;;
16      -date) dateSelected="-date $2"; dateJob="$2";     shift;;
17      -sim) 
18      simulationMode="-sim On"
19      $ECHO "INFO ${scriptName} running in SIMUL mode";;
20      -h)
21        echo >&2 \
22            "usage: $0 -src source -date YYYYMMDD [-freq freq in MHz (default ${freqBAOCalib})] [-sim to trig simulation mode]"
23        exit 1;;
24        *)  break;;     # terminate while loop
25    esac
26    shift
27done
28
29
30if [ "<${sourceRadio}>" = "<>" ]; then
31    $ECHO "FATAL: You have forgotten to select the source option (-src)"
32    exit 1
33fi
34
35
36jobBatchName="anarawonoff-${sourceRadio}${dateJob}"
37
38jobLogName="${jobBatchName}.log.$$"
39
40qsub -P P_baoradio -l sps=1,irods=1,ct=2400,vmem=1000M,fsize=1000M -o ${PWD}/${jobLogName} -j yes -N $jobBatchName -m be -M ${LOGNAME}@lal.in2p3.fr -V <<EOF
41
42${SCRIPTPATH}/anarawonoffmaker.sh  -src ${sourceRadio} ${dateSelected} ${simulationMode}
43EOF
Note: See TracBrowser for help on using the repository browser.