Last change
on this file since 610 was
576,
checked in by campagne, 13 years ago
|
u_irods_baoradio pour BQS (jec)
|
-
Property svn:executable set to
*
|
File size:
1.3 KB
|
Line | |
---|
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 | freqBAOCalib= |
---|
11 | #use -sim option to simulate processing (debug the script as if...) |
---|
12 | simulationMode="" |
---|
13 | while [ $# -gt 0 ] |
---|
14 | do |
---|
15 | case "$1" in |
---|
16 | -src) sourceRadio="$2"; shift;; |
---|
17 | -date) dateSelected="-date $2"; dateJob="$2"; shift;; |
---|
18 | -freq) freqBAOCalib="-freq $2"; shift;; |
---|
19 | -sim) |
---|
20 | simulationMode="-sim On" |
---|
21 | $ECHO "INFO ${scriptName} running in SIMUL mode";; |
---|
22 | -h) |
---|
23 | echo >&2 \ |
---|
24 | "usage: $0 -src souce -date YYYYMMDD [-freq freq in MHz (default ${freqBAOCalib})] [-sim to trig simulation mode]" |
---|
25 | exit 1;; |
---|
26 | *) break;; # terminate while loop |
---|
27 | esac |
---|
28 | shift |
---|
29 | done |
---|
30 | |
---|
31 | |
---|
32 | if [ "<${sourceRadio}>" = "<>" ]; then |
---|
33 | $ECHO "FATAL: You have forgotten to select the source option (-src)" |
---|
34 | exit 1 |
---|
35 | fi |
---|
36 | |
---|
37 | |
---|
38 | jobBatchName="onoff-${sourceRadio}${dateJob}" |
---|
39 | |
---|
40 | jobLogName="${jobBatchName}.log.$$" |
---|
41 | |
---|
42 | qsub -l u_sps_baoradio,u_irods,u_irods_baoradio,T=120000,M=1000MB,scratch=1000MB,platform=LINUX -eo -o $jobLogName -N $jobBatchName -mb -me -mu ${LOGNAME}@lal.in2p3.fr <<EOF |
---|
43 | /afs/in2p3.fr/home/c/campagne/private/work/AmasNancay/onoffmaker.sh -src ${sourceRadio} ${dateSelected} ${freqBAOCalib} ${simulationMode} |
---|
44 | EOF |
---|
Note: See
TracBrowser
for help on using the repository browser.