source: BAORadio/AmasNancay/trunk/submit2ge-gainmaker.sh @ 580

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

add new scripts

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