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

Last change on this file since 583 was 580, checked in by torrento, 14 years ago

add new scripts

  • Property svn:executable set to *
File size: 1.2 KB
RevLine 
[580]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 -P P_baoradio -l sps=1,irods=1,ct=2400,vmem=1000M,fsize=1000M -o $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.