Last change
on this file since 659 was
637,
checked in by campagne, 13 years ago
|
first introduction of DRIFT data (jec)
|
-
Property svn:executable set to
*
|
File size:
1.1 KB
|
Rev | Line | |
---|
[637] | 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 | #use -sim option to simulate processing (debug the script as if...) |
---|
| 10 | simulationMode="" |
---|
| 11 | while [ $# -gt 0 ] |
---|
| 12 | do |
---|
| 13 | case "$1" in |
---|
| 14 | -src) sourceRadio="$2"; shift;; |
---|
| 15 | -date) dateSelected="-date $2"; dateJob="$2"; shift;; |
---|
| 16 | -sim) |
---|
| 17 | simulationMode="-sim On" |
---|
| 18 | $ECHO "INFO ${scriptName} running in SIMUL mode";; |
---|
| 19 | -h) |
---|
| 20 | echo >&2 \ |
---|
| 21 | "usage: $0 -src source -date YYYYMMDD" |
---|
| 22 | exit 1;; |
---|
| 23 | *) break;; # terminate while loop |
---|
| 24 | esac |
---|
| 25 | shift |
---|
| 26 | done |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | if [ "<${sourceRadio}>" = "<>" ]; then |
---|
| 30 | $ECHO "FATAL: You have forgotten to select the source option (-src)" |
---|
| 31 | exit 1 |
---|
| 32 | fi |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | jobBatchName="anadrift-${sourceRadio}${dateJob}" |
---|
| 36 | |
---|
| 37 | jobLogName="${jobBatchName}.log.$$" |
---|
| 38 | |
---|
| 39 | qsub -P P_baoradio -l sps=1,irods=1,ct=1200,vmem=1000M,fsize=1000M -o ${PWD}/${jobLogName} -j yes -N $jobBatchName -m be -M ${LOGNAME}@lal.in2p3.fr -V <<EOF |
---|
| 40 | |
---|
| 41 | ${SCRIPTPATH}/anadriftmaker.sh -src ${sourceRadio} ${dateSelected} ${simulationMode} |
---|
| 42 | EOF |
---|
Note: See
TracBrowser
for help on using the repository browser.