Last change
on this file since 19651 was 18069, checked in by Daniela Dorner, 10 years ago |
added call of RunGanymed.sh
|
-
Property svn:executable
set to
*
|
File size:
1.6 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | #
|
---|
3 |
|
---|
4 | source `dirname $0`/../Sourcefile.sh
|
---|
5 | printprocesslog "INFO starting $0"
|
---|
6 |
|
---|
7 | logfile=$1
|
---|
8 |
|
---|
9 | cd $mars
|
---|
10 |
|
---|
11 | # run star
|
---|
12 | printprocesslog "INFO starting star_file.C for file "$2
|
---|
13 |
|
---|
14 | printprocesslog "DEBUG root -q -b fact/analysis/star_file.C\("\"$2\""\,5.2\,3.3\,"\"$3\""\) | tee $logfile | intgrep"
|
---|
15 | check1=`root -q -b fact/analysis/star_file.C\("\"$2\""\,5.2\,3.3\,"\"$3\""\) | tee $logfile | intgrep`
|
---|
16 |
|
---|
17 | case $check1 in
|
---|
18 | 0) printprocesslog "INFO star was successful for file "$2" (check1=$check1)"
|
---|
19 | # run merpp
|
---|
20 | printprocesslog "INFO starting merpp.C for file "$4
|
---|
21 | logfile=`echo $logfile | sed -e 's/images/merpp/g'`
|
---|
22 |
|
---|
23 | printprocesslog "DEBUG root -q -b fact/analysis/merpp_file.C\("\"$4\""\) | tee $logfile | intgrep"
|
---|
24 | check2=`root -q -b fact/analysis/merpp_file.C\("\"$4\""\) | tee $logfile | intgrep`
|
---|
25 |
|
---|
26 | case $check2 in
|
---|
27 | 0) printprocesslog "INFO merpp was successful for file "$4" (check2=$check2)"
|
---|
28 | `dirname $0`/RunGanymed.sh $4
|
---|
29 | ;;
|
---|
30 | *) printprocesslog "ERROR merpp_file.C failed for file "$4" -> check log "$logfile" (check2=$check2)"
|
---|
31 | # delete image file in this case to be sure that ganymed doesn't try to process it
|
---|
32 | if ls $4 >/dev/null 2>&1
|
---|
33 | then
|
---|
34 | rm -v $4
|
---|
35 | fi
|
---|
36 | ;;
|
---|
37 | esac
|
---|
38 | ;;
|
---|
39 | *) printprocesslog "ERROR star_file.C failed for file "$2" -> check log "$1" (check1=$check1)"
|
---|
40 | if ls $4 >/dev/null 2>&1
|
---|
41 | then
|
---|
42 | rm -v $4
|
---|
43 | fi
|
---|
44 | ;;
|
---|
45 | esac
|
---|
46 |
|
---|
47 | finish
|
---|
48 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.