source: BAORadio/AmasNancay/trunk/submit2bqs-anarawonoffmaker.sh @ 569

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

the mail is send to LOGNAME@lal (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 souce -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 -l u_sps_baoradio,u_irods,T=120000,M=1000MB,scratch=1000MB,platform=LINUX -eo -o $jobLogName -N $jobBatchName -mb -me -mu ${LOGNAME}@lal.in2p3.fr <<EOF
41/afs/in2p3.fr/home/c/campagne/private/work/AmasNancay/anarawonoffmaker.sh  -src ${sourceRadio} ${dateSelected} ${simulationMode}
42EOF
Note: See TracBrowser for help on using the repository browser.