Changeset 7460 for trunk/MagicSoft/Mars/datacenter/scripts/runganymed
- Timestamp:
- 01/10/06 22:12:58 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/runganymed
r7426 r7460 20 20 # Author(s): Daniela Dorner 08/2004 <mailto:dorner@astro.uni-wuerzburg.de> 21 21 # 22 # Copyright: MAGIC Software Development, 2000-200 422 # Copyright: MAGIC Software Development, 2000-2006 23 23 # 24 24 # 25 25 # ======================================================================== 26 26 # 27 # This script is launching ganymed for datasets. 28 # 29 # In the case of ganymed only one dataset is processed. Despite of 30 # that the structure of the script is such, that also more datasets could 31 # be processed. The restriction to one dataset has been made, as ganymed 32 # takes some time. There's one todo file per dataset. 33 # First the script searches for a todo file. Then ganymed is run for the 34 # dataset from this todo file. 35 # 36 # the ganymed.rc files are stored in the setup directory 27 37 # 28 38 … … 45 55 scriptlogpath=$logpath/run/ganymed/`date +%Y/%m/%d` 46 56 makedir $scriptlogpath 47 48 57 scriptlog=$scriptlogpath/runganymed-$datetime.log 49 58 … … 54 63 cd $mars 55 64 65 # check if getting of list is already running 56 66 date > $lockpath/lock-getting-ganymed-list.txt >> $scriptlog 2>&1 57 67 checklock0=$? … … 65 75 esac 66 76 77 # finding todo file 67 78 echo "checking if other todo-files are there" >> $scriptlog 2>&1 68 79 if ls $todofile-[1-9]*.txt >> $scriptlog 2>&1 … … 82 93 rm -v $lockpath/lock-getting-ganymed-list.txt >> $scriptlog 2>&1 83 94 95 # choosing todo file 84 96 nr=bla 85 97 echo "finding the right todo-file" >> $scriptlog 2>&1 86 98 todofiles=`ls $listpath/ToDo-$table-$column-*` 87 88 #echo "todofiles: "${todofiles[@]} >> $scriptlog 2>&189 99 90 100 for todofile in ${todofiles[@]} … … 114 124 esac 115 125 116 126 # retrieve dataset from todo file 117 127 datasets=(`cat $todofile`) 118 119 128 if [ "$datasets" = "" ] 120 129 then … … 126 135 fi 127 136 137 # run ganymed for dataset 128 138 echo "datasets: "${datasets[@]} >> $scriptlog 2>&1 129 130 139 for dataset in ${datasets[@]} 131 140 do … … 138 147 datasetfile="$datasetpath/$no/dataset$no2.txt" 139 148 echo "datasetfile: "$datasetfile >> $scriptlog 2>&1 149 # get observation mode to choose ganymed.rc file 140 150 wobble=`grep 'WobbleMode:' $datasetfile` >> $scriptlog 2>&1 141 151 wobble2=`echo $wobble | grep ^\#` >> $scriptlog 2>&1
Note:
See TracChangeset
for help on using the changeset viewer.