Last change
on this file since 18094 was 17986, checked in by ghughes, 10 years ago |
batch scripts update
|
-
Property svn:executable
set to
*
|
File size:
876 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | if [[ $# < 1 ]]
|
---|
4 | then
|
---|
5 | echo ""
|
---|
6 | echo "FACT.sub_star_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.star.file"
|
---|
17 |
|
---|
18 | ## Need to edit this TODO
|
---|
19 | ls $INDIR/cer* | head -n 1 > $TEMPFILE
|
---|
20 |
|
---|
21 | while read LINE
|
---|
22 | do
|
---|
23 |
|
---|
24 | INFILE=$LINE
|
---|
25 |
|
---|
26 | ## Need to edit this TODO
|
---|
27 | NUMBER=`echo $LINE | sed s/cer/" "/g | gawk '{print $2}'`
|
---|
28 |
|
---|
29 | QSUB=$MARSSYS"/batch/queue/FACT.qsub_star_mc_"$NUMBER".sh"
|
---|
30 | QSUBERR=$MARSSYS"/batch/queue/FACT.qsub_star_mc_"$NUMBER".err"
|
---|
31 | QSUBOUT=$MARSSYS"/batch/queue/FACT.qsub_star_mc_"$NUMBER".out"
|
---|
32 |
|
---|
33 | sed -e "s|FFFFF|$INFILE|" \
|
---|
34 | -e "s|DDDDD|$OUTDIR|" $MARSSYS"/batch/FACT.qsub_star_mc.sh" > $QSUB
|
---|
35 |
|
---|
36 | chmod +x $QSUB
|
---|
37 |
|
---|
38 | ##qsub -q fact_medium -b yes -o $QSUBOUT -e $QSUBERR $QSUB
|
---|
39 | qsub -q test -b yes -o $QSUBOUT -e $QSUBERR $QSUB
|
---|
40 | ##qsub -b yes -o $QSUBOUT -e $QSUBERR $QSUB
|
---|
41 |
|
---|
42 | done <$TEMPFILE
|
---|
43 |
|
---|
44 | rm $TEMPFILE
|
---|
Note:
See
TracBrowser
for help on using the repository browser.