Ignore:
Timestamp:
05/13/05 15:58:07 (20 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/datacenter/scripts
Files:
1 added
11 edited

Legend:

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

    r6934 r7030  
    2727#
    2828
    29 export ROOTSYS=/opt/root_v3.10.02
    30 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
    31 export PATH=$PATH:$ROOTSYS/bin
     29source /home/operator/Mars/datacenter/scripts/sourcefile
    3230
    3331set -C
    34 
    35 mars=/home/operator/Mars
    36 macrospath=$mars/datacenter/macros
    37 scriptspath=$mars/datacenter/scripts
    3832
    3933cd $mars
     
    4640
    4741todofile=/magic/datacenter/lists/ToDo-$table-$column.txt
    48 lockpath=/magic/datacenter/locks
    49 logpath=/magic/datacenter/autologs
    5042getstatuslogpath=$logpath/getstatus/buildsequenceentries/$year
    5143getstatuslog=$getstatuslogpath/getstatus-buildsequenceentries-$datetime.log
  • trunk/MagicSoft/Mars/datacenter/scripts/checkfilesforsequenceavail

    r6934 r7030  
    2727#
    2828
    29 export ROOTSYS=/opt/root_v3.10.02
    30 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
    31 export PATH=$PATH:$ROOTSYS/bin
    32 
    33 mars=/home/operator/Mars
    34 macrospath=$mars/datacenter/macros
     29source /home/operator/Mars/datacenter/scripts/sourcefile
    3530
    3631table=SequenceProcessStatus
     
    4136
    4237todofile=/magic/datacenter/lists/ToDo-$table-$column.txt
    43 logpath=/magic/datacenter/autologs
    4438getstatuslogpath=$logpath/getstatus/checkfileavail/$year
    4539getstatuslog=$getstatuslogpath/getstatus-$table-$column-$datetime.log
  • trunk/MagicSoft/Mars/datacenter/scripts/copyscript

    r6999 r7030  
    5757#
    5858
    59 export ROOTSYS=/opt/root_v3.10.02
    60 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
    61 export PATH=$PATH:$ROOTSYS/bin
     59source /home/operator/Mars/datacenter/scripts/sourcefile
    6260
    6361set -C
     
    6563umask 0002
    6664
    67 mars=/home/operator/Mars
    68 macrospath=$mars/datacenter/macros
    69 scriptspath=$mars/datacenter/scripts
    7065transdir=/magic/datacenter/transfer
    7166char=28
    7267extern=MAGIC@virgo:/data/MAGIC/transfer
    7368datetime=`date +%F-%H-%M-%S`
    74 
    75 lockpath=/magic/datacenter/locks
    76 logpath=/magic/datacenter/autologs
    7769
    7870scriptlogpath=$logpath/run/copyscript/`date +%Y/%m/%d`
  • trunk/MagicSoft/Mars/datacenter/scripts/correcttime

    r6934 r7030  
    2727#
    2828
    29 export ROOTSYS=/opt/root_v3.10.02
    30 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
    31 export PATH=$PATH:$ROOTSYS/bin
    32 
    33 mars=/home/operator/Mars
    34 macrospath=$mars/datacenter/macros
     29source /home/operator/Mars/datacenter/scripts/sourcefile
    3530
    3631table=RunProcessStatus
     
    4136
    4237listdir=/magic/datacenter/lists
    43 logpath=/magic/datacenter/autologs
    4438getstatuslogpath=$logpath/getstatus/correct_raw_time/$year
    4539getstatuslog=$getstatuslogpath/getstatus-$table-$column-$datetime.log
  • trunk/MagicSoft/Mars/datacenter/scripts/doexclusions

    r6946 r7030  
    2727#
    2828
    29 export ROOTSYS=/opt/root_v3.10.02
    30 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
    31 export PATH=$PATH:$ROOTSYS/bin
     29source /home/operator/Mars/datacenter/scripts/sourcefile
    3230
    3331set -C
    34 
    35 mars=/home/operator/Mars
    36 macrospath=$mars/datacenter/macros
    37 scriptspath=$mars/datacenter/scripts
    3832
    3933cd $mars
     
    4640
    4741todofile=/magic/datacenter/lists/ToDo-$table-$column.txt
    48 lockpath=/magic/datacenter/locks
    49 logpath=/magic/datacenter/autologs
    5042getstatuslogpath=$logpath/getstatus/doexclusions/$year
    5143getstatuslog=$getstatuslogpath/getstatus-doexcludions-$datetime.log
  • trunk/MagicSoft/Mars/datacenter/scripts/filesondisk

    r6934 r7030  
    2727#
    2828
    29 export ROOTSYS=/opt/root_v3.10.02
    30 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
    31 export PATH=$PATH:$ROOTSYS/bin
    32 
    33 mars=/home/operator/Mars
    34 macrospath=$mars/datacenter/macros
     29source /home/operator/Mars/datacenter/scripts/sourcefile
    3530
    3631cd $mars
     
    3934subsystemdir=/magic/subsystemdata
    4035rawdir=/magic/data
    41 logpath=/magic/datacenter/autologs/filesondisk/`date +%Y`
     36filesondisklogpath=$logpath/filesondisk/`date +%Y`
    4237
    43 if [ ! -d $logpath ]
     38if [ ! -d $filesondisklogpath ]
    4439then
    45   mkdir -pv $logpath
    46   if [ ! -d $logpath ]
     40  mkdir -pv $filesondisklogpath
     41  if [ ! -d $filesondisklogpath ]
    4742  then
    48      echo "could not make directory "$logpath
     43     echo "could not make directory "$filesondisklogpath
    4944     exit
    5045  fi
     
    5550echo "checking disk for ccfiles..."
    5651
    57 filename=$logpath/ccfilesondisk-$date.txt
     52filename=$filesondisklogpath/ccfilesondisk-$date.txt
    5853column=fCCFileAvail
    5954
     
    6257
    6358echo "resetting runs..."
    64 check3=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $logpath/resetall-$column-$date.log | grep int | sed -e 's/(int)//'`
     59check3=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $filesondisklogpath/resetall-$column-$date.log | grep int | sed -e 's/(int)//'`
    6560
    6661case $check3 in
     
    7368echo "checking disk for cacofiles..."
    7469
    75 filename=$logpath/cacofilesondisk-$date.txt
     70filename=$filesondisklogpath/cacofilesondisk-$date.txt
    7671column=fCaCoFileAvail
    7772
     
    8075
    8176echo "resetting runs..."
    82 check0=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $logpath/resetall-$column-$date.log | grep int | sed -e 's/(int)//'`
     77check0=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $filesondisklogpath/resetall-$column-$date.log | grep int | sed -e 's/(int)//'`
    8378
    8479case $check0 in
     
    9085
    9186echo "checking missing cacofiles..."
    92 check1=`root -q -b $macrospath/findcacofiles.C+\("\"$date\""\) | tee $logpath/findcacofiles-$date.log | grep int | sed -e 's/(int)//'`
     87check1=`root -q -b $macrospath/findcacofiles.C+\("\"$date\""\) | tee $filesondisklogpath/findcacofiles-$date.log | grep int | sed -e 's/(int)//'`
    9388
    9489case $check1 in
     
    9792esac
    9893
    99 missingcacoruns=(`cat $logpath/findcacofiles-$date.txt`)
     94missingcacoruns=(`cat $filesondisklogpath/findcacofiles-$date.txt`)
    10095
    10196for missingcacorun in ${missingcacoruns[@]}
     
    122117      else
    123118         echo "inserting cacofile $file for run $missingcacorun..."
    124          check2=`root -q -b $macrospath/insertcacofile.C+\("\"$runno\""\,"\"$newrun\""\) | tee $logpath/insertcacofile-$missingcacorun.log | grep int | sed -e 's/(int)//'`
     119         check2=`root -q -b $macrospath/insertcacofile.C+\("\"$runno\""\,"\"$newrun\""\) | tee $filesondisklogpath/insertcacofile-$missingcacorun.log | grep int | sed -e 's/(int)//'`
    125120
    126121         case $check2 in
     
    139134echo "checking disk for rawfiles..."
    140135
    141 filename=$logpath/rawfilesondisk-$date.txt
     136filename=$filesondisklogpath/rawfilesondisk-$date.txt
    142137column=fRawFileAvail
    143138
     
    145140
    146141echo "resetting runs..."                                   
    147 check4=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $logpath/resetall-$column-$date.log | grep int | sed -e 's/(int)//'`
     142check4=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $filesondisklogpath/resetall-$column-$date.log | grep int | sed -e 's/(int)//'`
    148143
    149144case $check4 in
  • trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto

    r6940 r7030  
    2727#
    2828
    29 export ROOTSYS=/opt/root_v3.10.02
    30 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
    31 export PATH=$PATH:$ROOTSYS/bin
     29source /home/operator/Mars/datacenter/scripts/sourcefile
    3230
    3331set -C
    34 
    35 mars=/home/operator/Mars
    36 macrospath=$mars/datacenter/macros
    37 scriptspath=$mars/datacenter/scripts
    3832
    3933table=SequenceProcessStatus
     
    4438
    4539todofile=/magic/datacenter/lists/ToDo-$table-$column.txt
    46 lockpath=/magic/datacenter/locks
    47 logpath=/magic/datacenter/autologs
    4840getstatuslogpath=$logpath/getstatus/fillcallisto/$year
    4941getstatuslog=$getstatuslogpath/getstatus-fillcallisto-$datetime.log
  • trunk/MagicSoft/Mars/datacenter/scripts/fillstar

    r7019 r7030  
    2727#
    2828
    29 export ROOTSYS=/opt/root_v3.10.02
    30 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
    31 export PATH=$PATH:$ROOTSYS/bin
     29source /home/operator/Mars/datacenter/scripts/sourcefile
    3230
    3331set -C
    34 
    35 mars=/home/operator/Mars
    36 macrospath=$mars/datacenter/macros
    37 scriptspath=$mars/datacenter/scripts
    3832
    3933table=SequenceProcessStatus
     
    4438
    4539todofile=/magic/datacenter/lists/ToDo-$table-$column.txt
    46 lockpath=/magic/datacenter/locks
    47 logpath=/magic/datacenter/autologs
    4840getstatuslogpath=$logpath/getstatus/fillstar/$year
    4941getstatuslog=$getstatuslogpath/getstatus-fillstar-$datetime.log
  • trunk/MagicSoft/Mars/datacenter/scripts/runcallisto

    r7024 r7030  
    2727#
    2828
    29 export ROOTSYS=/opt/root_v3.10.02
    30 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
    31 export PATH=$PATH:$ROOTSYS/bin
     29source /home/operator/Mars/datacenter/scripts/sourcefile
    3230
    3331set -C
    3432
    35 mars=/home/operator/Mars
    36 macrospath=$mars/datacenter/macros
    37 scriptspath=$mars/datacenter/scripts
    3833callistorcnew=/magic/datacenter/setup/callisto/callisto.rc
    3934
     
    4641
    4742todofile=/magic/datacenter/lists/ToDo-$table-$column
    48 lockpath=/magic/datacenter/locks
    49 logpath=/magic/datacenter/autologs
    5043getstatuslogpath=$logpath/getstatus/callisto/$year
    5144getstatuslog=$getstatuslogpath/getstatus-callisto-$datetime.log
  • trunk/MagicSoft/Mars/datacenter/scripts/runstar

    r7024 r7030  
    2727#
    2828
    29 export ROOTSYS=/opt/root_v3.10.02
    30 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
    31 export PATH=$PATH:$ROOTSYS/bin
     29source /home/operator/Mars/datacenter/scripts/sourcefile
    3230
    3331set -C
    34 
    35 mars=/home/operator/Mars
    36 macrospath=$mars/datacenter/macros
    37 scriptspath=$mars/datacenter/scripts
    3832
    3933table=SequenceProcessStatus
     
    4539
    4640todofile=/magic/datacenter/lists/ToDo-$table-$column
    47 lockpath=/magic/datacenter/locks
    48 logpath=/magic/datacenter/autologs
    4941getstatuslogpath=$logpath/getstatus/star/$year
    5042getstatuslog=$getstatuslogpath/getstatus-star-$datetime.log
  • trunk/MagicSoft/Mars/datacenter/scripts/writesequencefiles

    r6972 r7030  
    2727#
    2828
    29 export ROOTSYS=/opt/root_v3.10.02
    30 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
    31 export PATH=$PATH:$ROOTSYS/bin
     29source /home/operator/Mars/datacenter/scripts/sourcefile
    3230
    3331set -C
    34 
    35 mars=/home/operator/Mars
    36 macrospath=$mars/datacenter/macros
    37 scriptspath=$mars/datacenter/scripts
    3832
    3933table=SequenceProcessStatus
     
    4438
    4539todofile=/magic/datacenter/lists/ToDo-$table-$column.txt
    46 lockpath=/magic/datacenter/locks
    47 logpath=/magic/datacenter/autologs
    4840getstatuslogpath=$logpath/getstatus/writesequencefiles/$year
    4941getstatuslog=$getstatuslogpath/getstatus-writesequencefiles-$datetime.log
Note: See TracChangeset for help on using the changeset viewer.