Last change
on this file since 666 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
|
Rev | Line | |
---|
[580] | 1 | #!/bin/sh -xv |
---|
| 2 | |
---|
| 3 | scriptName="`basename $0`" |
---|
| 4 | echo "Processing script ${scriptName} at `date`" |
---|
| 5 | |
---|
| 6 | #Process cmd line args: the -src option is mandatory (source name as Abell85) |
---|
| 7 | sourceRadio= |
---|
| 8 | dateSelected= |
---|
| 9 | dateJob= |
---|
| 10 | #use -sim option to simulate processing (debug the script as if...) |
---|
| 11 | simulationMode="" |
---|
| 12 | while [ $# -gt 0 ] |
---|
| 13 | do |
---|
| 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 \ |
---|
[595] | 22 | "usage: $0 -src source -date YYYYMMDD [-freq freq in MHz (default ${freqBAOCalib})] [-sim to trig simulation mode]" |
---|
[580] | 23 | exit 1;; |
---|
| 24 | *) break;; # terminate while loop |
---|
| 25 | esac |
---|
| 26 | shift |
---|
| 27 | done |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | if [ "<${sourceRadio}>" = "<>" ]; then |
---|
| 31 | $ECHO "FATAL: You have forgotten to select the source option (-src)" |
---|
| 32 | exit 1 |
---|
| 33 | fi |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | jobBatchName="anarawonoff-${sourceRadio}${dateJob}" |
---|
| 37 | |
---|
| 38 | jobLogName="${jobBatchName}.log.$$" |
---|
| 39 | |
---|
[598] | 40 | qsub -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 |
---|
[580] | 41 | |
---|
| 42 | ${SCRIPTPATH}/anarawonoffmaker.sh -src ${sourceRadio} ${dateSelected} ${simulationMode} |
---|
| 43 | EOF |
---|
Note: See
TracBrowser
for help on using the repository browser.