Ignore:
Timestamp:
01/10/06 22:12:58 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/runganymed

    r7426 r7460  
    2020#   Author(s): Daniela Dorner  08/2004 <mailto:dorner@astro.uni-wuerzburg.de>
    2121#
    22 #   Copyright: MAGIC Software Development, 2000-2004
     22#   Copyright: MAGIC Software Development, 2000-2006
    2323#
    2424#
    2525# ========================================================================
    2626#
     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
    2737#
    2838
     
    4555scriptlogpath=$logpath/run/ganymed/`date +%Y/%m/%d`
    4656makedir $scriptlogpath
    47 
    4857scriptlog=$scriptlogpath/runganymed-$datetime.log
    4958
     
    5463cd $mars
    5564
     65# check if getting of list is already running
    5666date > $lockpath/lock-getting-ganymed-list.txt >> $scriptlog 2>&1
    5767checklock0=$?
     
    6575esac
    6676
     77# finding todo file
    6778echo "checking if other todo-files are there" >> $scriptlog 2>&1
    6879if  ls $todofile-[1-9]*.txt >> $scriptlog 2>&1
     
    8293rm -v $lockpath/lock-getting-ganymed-list.txt >> $scriptlog 2>&1
    8394
     95# choosing todo file
    8496nr=bla
    8597echo "finding the right todo-file" >> $scriptlog 2>&1
    8698todofiles=`ls $listpath/ToDo-$table-$column-*`
    87 
    88 #echo "todofiles: "${todofiles[@]} >> $scriptlog 2>&1
    8999
    90100for todofile in ${todofiles[@]}
     
    114124esac
    115125
    116 
     126# retrieve dataset from todo file
    117127datasets=(`cat $todofile`)
    118 
    119128if [ "$datasets" = "" ]
    120129then
     
    126135fi
    127136
     137# run ganymed for dataset
    128138echo "datasets: "${datasets[@]} >> $scriptlog 2>&1
    129 
    130139for dataset in ${datasets[@]}
    131140do
     
    138147  datasetfile="$datasetpath/$no/dataset$no2.txt"
    139148  echo "datasetfile: "$datasetfile >> $scriptlog 2>&1
     149  # get observation mode to choose ganymed.rc file
    140150  wobble=`grep 'WobbleMode:' $datasetfile` >> $scriptlog 2>&1
    141151  wobble2=`echo $wobble | grep ^\#` >> $scriptlog 2>&1
Note: See TracChangeset for help on using the changeset viewer.