| Last change
 on this file since 680 was             598, checked in by campagne, 14 years ago | 
        
          | 
cleaning of the set of scripts, and improve th submit2ge options, and improve analysis (jec)
 | 
        
          | 
              
Property                 svn:executable
 set to                 * | 
        
          | File size:
            980 bytes | 
      
      
| Line |  | 
|---|
| 1 | #!/bin/sh -xv | 
|---|
| 2 |  | 
|---|
| 3 | #Process cmd line args: the -src option is mandatory (source name as Abell85) | 
|---|
| 4 | sourceRadio= | 
|---|
| 5 | dateSelected= | 
|---|
| 6 | #use -sim option to simulate processing (debug the script as if...) | 
|---|
| 7 | simulationMode="" | 
|---|
| 8 | while [ $# -gt 0 ] | 
|---|
| 9 | do | 
|---|
| 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 source -date YYYYMMDD [-sim]" | 
|---|
| 17 | exit 1;; | 
|---|
| 18 | *)  break;;     # terminate while loop | 
|---|
| 19 | esac | 
|---|
| 20 | shift | 
|---|
| 21 | done | 
|---|
| 22 |  | 
|---|
| 23 |  | 
|---|
| 24 | if [ "<${sourceRadio}>" = "<>" ]; then | 
|---|
| 25 | $ECHO "FATAL: You have forgotten to select the source option (-src)" | 
|---|
| 26 | exit 1 | 
|---|
| 27 | fi | 
|---|
| 28 |  | 
|---|
| 29 | jobBatchName="gains-${sourceRadio}${dateJob}" | 
|---|
| 30 | jobLogName="${jobBatchName}.log.$$" | 
|---|
| 31 |  | 
|---|
| 32 | qsub -P P_baoradio -l sps=1,irods=1,ct=2400,vmem=1000M,fsize=500M -o ${PWD}/${jobLogName} -j yes -N $jobBatchName -m be -M ${LOGNAME}@lal.in2p3.fr -V <<EOF | 
|---|
| 33 |  | 
|---|
| 34 | ${SCRIPTPATH}/anagainmaker.sh -src ${sourceRadio} ${dateSelected} ${simulationMode} | 
|---|
| 35 | EOF | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.