source: trunk/DataCheck/Tools/Step2a-short.sh@ 19242

Last change on this file since 19242 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#
3source `dirname $0`/../Sourcefile.sh
4printprocesslog "INFO starting $0"
5
6files=`find /gpfs0/fact/processing/data.r19161/star/ -name '*_I.root'`
7
8for file in ${files[@]}
9do
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
26done
27
28finish
29
Note: See TracBrowser for help on using the repository browser.