Ignore:
Timestamp:
01/30/06 17:13:07 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7460 r7465  
    3939
    4040user=`whoami`
     41program=correct_raw_time
    4142source /home/$user/Mars/datacenter/scripts/sourcefile
    4243
     
    4748year=`date +%Y`
    4849
    49 getstatuslogpath=$logpath/getstatus/correct_raw_time/$year
     50getstatuslogpath=$logpath/getstatus/$program/$year
    5051getstatuslog=$getstatuslogpath/getstatus-$table-$column-$datetime.log
    5152makedir $getstatuslogpath >> $scriptlog 2>&1
     
    5354if [ -e $listpath/ToDo-$table-$column.txt ]
    5455then
    55    echo "correct_raw_time is already running -> exit"
     56   echo "$program is already running -> exit"
    5657   exit
    5758fi
     
    6364
    6465case $check0 in
    65    1)   echo "check0=$check0 -> everything ok -> run correct_raw_time";;
     66   1)   echo "check0=$check0 -> everything ok -> run $program";;
    6667   *)   echo "check0=$check0 -> ERROR -> step has to be repeated";;
    6768esac
     
    9394 
    9495  check1=0
    95   echo "run correct_raw_time..."
    96   /home/tape/MagicReadout/correct_raw_time $infile $outfile > $timecorrpath/correct_raw_time-$run.log
     96  echo "run $program..."
     97  /home/tape/MagicReadout/correct_raw_time $infile $outfile > $timecorrpath/$program-$run.log
    9798  check1=$?
    9899
     
    100101     1)   echo "check1=$check1 -> everything ok -> setting status..."
    101102          no=`printf %08d $run | cut -c 1-5`
    102           setstatuspath=$logpath/setstatus/correct_raw_time/$no
    103           echo "setstatuspath: "$setstatuspath
    104           makedir $setstatuspath
    105 
    106           check2=`root -q -b $macrospath/setstatus.C+\("\"$run\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuspath/setstatus-correct_raw_time-$run.log | grep int | sed -e 's/(int)//'`
    107           case $check2 in
    108              0)   echo "check2=0 -> ERROR -> step could not be set";;
    109              1)   echo "check2=1 -> everything ok, status has been set";;
    110           esac
     103          statustime="Now()"
     104          failed="NULL"
     105          starttime="NULL"
     106          failedtime="NULL"
     107          var1=$no
     108          var2=$run
     109          setstatus
    111110        ;;
    112111     *)   echo "check1=$check1 -> ERROR -> step has to be repeated";;
Note: See TracChangeset for help on using the changeset viewer.