Last change
on this file since 19740 was 19195, checked in by Daniela Dorner, 6 years ago |
fast version of Step2a
|
-
Property svn:executable
set to
*
|
File size:
1.1 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | #
|
---|
3 | source `dirname $0`/../Sourcefile.sh
|
---|
4 | printprocesslog "INFO starting $0"
|
---|
5 |
|
---|
6 | files=`find /gpfs0/fact/processing/data.r19161/star/ -name '*_I.root'`
|
---|
7 |
|
---|
8 | for file in ${files[@]}
|
---|
9 | do
|
---|
10 | night=`basename $file | cut -d_ -f1`
|
---|
11 | run=`basename $file | cut -d_ -f2`
|
---|
12 | logfile=`echo $file | sed -e 's/star/ganymed_run/' -e 's/_I[.]root/-ganymed[.]log/'`
|
---|
13 | if ! ls $logfile >/dev/null 2>&1
|
---|
14 | then
|
---|
15 | echo "INFO processing "$file
|
---|
16 | printprocesslog "DEBUG `dirname $0 | sed -e 's/Tools/QuickLook/'`/RunGanymed.sh "$file
|
---|
17 | if [ "$qlasge" = "yes" ]
|
---|
18 | then
|
---|
19 | printprocesslog "$sgepath/qsub -b y -q fact_short -v AUTOMATIONSETUP=$AUTOMATIONSETUP -v starfile=$file -e bla.txt -o bla.txt `dirname $0 | sed -e 's/Tools/QuickLook/'`/RunGanymed.sh"
|
---|
20 | $sgepath/qsub -b y -q fact_short -v AUTOMATIONSETUP=$AUTOMATIONSETUP -v starfile=$file -e bla.txt -o bla.txt `dirname $0 | sed -e 's/Tools/QuickLook/'`/RunGanymed.sh | grep -v 'has been submitted'
|
---|
21 | else
|
---|
22 | printprocesslog " INFO `dirname $0 | sed -e 's/Tools/QuickLook/'`/RunGanymed.sh $file"
|
---|
23 | `dirname $0 | sed -e 's/Tools/QuickLook/'`/RunGanymed.sh $file
|
---|
24 | fi
|
---|
25 | fi
|
---|
26 | done
|
---|
27 |
|
---|
28 | finish
|
---|
29 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.