Last change
on this file since 19875 was 17985, checked in by ghughes, 10 years ago |
first pass at ceres scripts
|
-
Property svn:executable
set to
*
|
File size:
830 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | if [[ $# < 1 ]]
|
---|
4 | then
|
---|
5 | echo ""
|
---|
6 | echo "FACT.sub_ceres_mc.sh <input dir> <output dir>"
|
---|
7 | echo ""
|
---|
8 | exit
|
---|
9 | fi
|
---|
10 |
|
---|
11 | cd $MARSSYS
|
---|
12 |
|
---|
13 | INDIR=$1
|
---|
14 | OUTDIR=$2
|
---|
15 |
|
---|
16 | TEMPFILE="temp.ceres.file"
|
---|
17 |
|
---|
18 | ls $INDIR/cer* | head -n 1 > $TEMPFILE
|
---|
19 |
|
---|
20 | while read LINE
|
---|
21 | do
|
---|
22 |
|
---|
23 | INFILE=$LINE
|
---|
24 |
|
---|
25 | NUMBER=`echo $LINE | sed s/cer/" "/g | gawk '{print $2}'`
|
---|
26 |
|
---|
27 | QSUB=$MARSSYS"/batch/queue/FACT.qsub_ceres_mc_"$NUMBER".sh"
|
---|
28 | QSUBERR=$MARSSYS"/batch/queue/FACT.qsub_ceres_mc_"$NUMBER".err"
|
---|
29 | QSUBOUT=$MARSSYS"/batch/queue/FACT.qsub_ceres_mc_"$NUMBER".out"
|
---|
30 |
|
---|
31 | sed -e "s|FFFFF|$INFILE|" \
|
---|
32 | -e "s|DDDDD|$OUTDIR|" $MARSSYS"/batch/FACT.qsub_ceres_mc.sh" > $QSUB
|
---|
33 |
|
---|
34 | chmod +x $QSUB
|
---|
35 |
|
---|
36 | ##qsub -q fact_medium -b yes -o $QSUBOUT -e $QSUBERR $QSUB
|
---|
37 | qsub -q test -b yes -o $QSUBOUT -e $QSUBERR $QSUB
|
---|
38 | ##qsub -b yes -o $QSUBOUT -e $QSUBERR $QSUB
|
---|
39 |
|
---|
40 | done <$TEMPFILE
|
---|
41 |
|
---|
42 | rm $TEMPFILE
|
---|
Note:
See
TracBrowser
for help on using the repository browser.