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/filesondisk

    r7265 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 #
     27# This script checks which files are on disk and updates the database
     28# accordingly. It is not yet running automatically.
     29#
     30# It is checking the:
     31# - ccfiles
     32# - cacofiles
     33#   this includes also the search for missing cacofiles:
     34#   Sometimes the DAQ aborts a run and starts itself a new one. In this
     35#   cases the camera controll doesn't start a new file, as the command to
     36#   start a new run was not sent by the central control. So the caco
     37#   information is stored in the previous caco file, which has a
     38#   different runnumber. To be able to merpp the information into the
     39#   calibrated data file, the runnumber of the file containing the
     40#   information has to be found.
     41#   In this script the search and inserting into the database is done
     42#   using the macros findcacofiles.C and insertcacofile.C
     43# - rawfiles
     44# The update in the database is done using the macro resetallruns.C
     45#
    2846
    2947user=`whoami`
     
    3957
    4058echo "checking disk for ccfiles..."
    41 
    4259filename=$filesondisklogpath/ccfilesondisk-$date.txt
    4360column=fCCFileAvail
    44 
    4561find $subsystemdir/cc/ -name '*_S.rep' | cut -d_ -f2  > $filename
    46 
    4762
    4863echo "resetting runs..."
     
    5570
    5671
    57 
    5872echo "checking disk for cacofiles..."
    59 
    6073filename=$filesondisklogpath/cacofilesondisk-$date.txt
    6174column=fCaCoFileAvail
    62 
    6375find $subsystemdir/caco/ -name '*.txt' | cut -d_ -f8 | grep [0-9] > $filename
    64 
    6576
    6677echo "resetting runs..."
     
    7182   *)   echo "check0=$check0 -> ERROR -> something went wrong while resetting";;
    7283esac
    73 
    74 
    7584
    7685echo "checking missing cacofiles..."
     
    8392
    8493missingcacoruns=(`cat $filesondisklogpath/findcacofiles-$date.txt`)
    85 
    8694for missingcacorun in ${missingcacoruns[@]}
    8795do
     
    121129
    122130
    123 
    124131echo "checking disk for rawfiles..."
    125 
    126132filename=$filesondisklogpath/rawfilesondisk-$date.txt
    127133column=fRawFileAvail
    128 
    129134find $datapath -name '*.raw' | cut -d_ -f2 > $filename
    130135
Note: See TracChangeset for help on using the changeset viewer.