| 
            Last change
 on this file since 623 was             510, checked in by campagne, 14 years ago           | 
        
        
          | 
             
change scriptpath (general) + minor things 
 
           | 
        
        
          | 
            File size:
            775 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 | #!/bin/sh -xv
 | 
|---|
| 2 | 
 | 
|---|
| 3 | #Process cmd line args: the -src option is mandatory (source name as Abell85)
 | 
|---|
| 4 | sourceRadio=
 | 
|---|
| 5 | #use -sim option to simulate processing (debug the script as if...)
 | 
|---|
| 6 | simulationMode=""
 | 
|---|
| 7 | while [ $# -gt 0 ]
 | 
|---|
| 8 | do
 | 
|---|
| 9 |   case "$1" in
 | 
|---|
| 10 |       -src)  sourceRadio=$2; shift;;
 | 
|---|
| 11 |       -sim) simulationMode="-sim"; shift;;
 | 
|---|
| 12 |         -h)
 | 
|---|
| 13 |             echo >&2 \
 | 
|---|
| 14 |             "usage: $0 -src souce [-sim]"
 | 
|---|
| 15 |             exit 1;;
 | 
|---|
| 16 |         *)  break;;     # terminate while loop
 | 
|---|
| 17 |     esac
 | 
|---|
| 18 |     shift
 | 
|---|
| 19 | done
 | 
|---|
| 20 | 
 | 
|---|
| 21 | jobBatchName="gains-$sourceRadio"
 | 
|---|
| 22 | jobLogName="${jobBatchName}.log.$$"
 | 
|---|
| 23 | 
 | 
|---|
| 24 | qsub -l u_sps_baoradio,u_irods,T=120000,M=1000MB,scratch=500MB,platform=LINUX -eo -o $jobLogName -N $jobBatchName -mb -me -mu campagne@lal.in2p3.fr <<EOF
 | 
|---|
| 25 | /afs/in2p3.fr/home/c/campagne/private/work/AmasNancay/gainmaker.sh  -src ${sourceRadio} ${simulationMode}
 | 
|---|
| 26 | EOF
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.