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

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

add new scripts

  • Property svn:executable set to *
File size: 722 bytes
Line 
1#!/bin/sh -xv
2
3#Process cmd line args: the -src option is mandatory (source name as Abell85)
4sourceRadio=
5#use -sim option to simulate processing (debug the script as if...)
6simulationMode=""
7while [ $# -gt 0 ]
8do
9 case "$1" in
10 -src) sourceRadio=$2; shift;;
11 -sim) simulationMode="-sim";;
12 -h)
13 echo >&2 \
14 "usage: $0 -src souce [-sim]"
15 exit 1;;
16 *) break;; # terminate while loop
17 esac
18 shift
19done
20
21jobBatchName="gains-$sourceRadio"
22jobLogName="${jobBatchName}.log.$$"
23
24qsub -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
25
26${SCRIPTPATH}/gainmaker.sh -src ${sourceRadio} ${simulationMode}
27EOF
Note: See TracBrowser for help on using the repository browser.