Ignore:
Timestamp:
02/03/06 16:49:10 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7474 r7477  
    6363}
    6464
     65function finish()
     66{
     67   rm -v $todofile
     68   rm -v $lockfile
     69   date
     70   exit
     71}
     72
     73function getdolist()
     74{
     75   datetime=`date +%F-%H-%M-%S`
     76   year=`date +%Y`
     77   date=NULL
     78   
     79   getstatuslogpath=$logpath/getstatus/$program/$year
     80   getstatuslog=$getstatuslogpath/getstatus-$table-$column-$datetime.log
     81   makedir $getstatuslogpath
     82
     83   # get todo list
     84   echo "getting todo list..."
     85   check0=`root -q -b $macrospath/getdolist.C+\("\"$table\""\,"\"$column\""\,"\"$date\""\,"\"$listpath\""\) | tee $getstatus | grep int | sed -e 's/(int)//'`
     86
     87   case $check0 in
     88      1)   echo "check0=$check0 -> everything ok, got todo list -> run $program";;
     89      *)   echo "check0=$check0 -> ERROR -> could not get todo list -> exit"
     90           finish ;;
     91   esac
     92
     93}
     94
    6595function resetstatusvalues()
    6696{
     
    118148   case $checkstatus in
    119149      1)   echo "checkstatus=$checkstatus -> everything ok, status has been set";;
    120       *)   echo "checkstatus=$checkstatus -> ERROR -> step could not be set";;
     150      *)   echo "checkstatus=$checkstatus -> ERROR -> step could not be set -> exit"
     151           finish ;;
    121152   esac
    122153}
Note: See TracChangeset for help on using the changeset viewer.