Last change
on this file since 19365 was 17984, checked in by ghughes, 10 years ago |
mixed some major bigs, removed hardcoded directory stuff, some minor testing still needed but batch full
|
-
Property svn:executable
set to
*
|
File size:
920 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | if [[ $# < 1 ]]
|
---|
4 | then
|
---|
5 | echo ""
|
---|
6 | echo "FACT.sub_star_data.sh <runlist>"
|
---|
7 | echo ""
|
---|
8 | echo "<runlist> should be in the form YEAR MONTH DAY eg:"
|
---|
9 | echo "2013 10 15"
|
---|
10 | echo ""
|
---|
11 | exit
|
---|
12 | fi
|
---|
13 |
|
---|
14 | cd $MARSSYS
|
---|
15 |
|
---|
16 | INFILE=$MARSSYS"/batch/"$1
|
---|
17 |
|
---|
18 | while read LINE
|
---|
19 | do
|
---|
20 |
|
---|
21 | YEAR=`echo $LINE | gawk '{print $1}'`
|
---|
22 | MONTH=`echo $LINE | gawk '{print $2}'`
|
---|
23 | DAY=`echo $LINE | gawk '{print $3}'`
|
---|
24 |
|
---|
25 | DATE=$YEAR$MONTH$DAY
|
---|
26 | QSUB=$MARSSYS"/batch/queue/FACT.qsub_star_data_"$DATE".sh"
|
---|
27 |
|
---|
28 | QSUBERR=$MARSSYS"/batch/queue/FACT.qsub_star_data_"$DATE".err"
|
---|
29 | QSUBOUT=$MARSSYS"/batch/queue/FACT.qsub_star_data_"$DATE".out"
|
---|
30 |
|
---|
31 | sed -e "s|YYYYY|$YEAR|" \
|
---|
32 | -e "s|MMMMM|$MONTH|" \
|
---|
33 | -e "s|DDDDD|$DAY|" $MARSSYS"/batch/FACT.qsub_star_data.sh" > $QSUB
|
---|
34 |
|
---|
35 | chmod +x $QSUB
|
---|
36 |
|
---|
37 | ##qsub -q fact_medium -b yes -o $QSUBOUT -e $QSUBERR $QSUB
|
---|
38 | ##qsub -q test -b yes -o $QSUBOUT -e $QSUBERR $QSUB
|
---|
39 | qsub -b yes -o $QSUBOUT -e $QSUBERR $QSUB
|
---|
40 |
|
---|
41 | done <$INFILE
|
---|
Note:
See
TracBrowser
for help on using the repository browser.