Changeset 7460 for trunk/MagicSoft/Mars/datacenter/scripts/filesondisk
- Timestamp:
- 01/10/06 22:12:58 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/filesondisk
r7265 r7460 20 20 # Author(s): Daniela Dorner 08/2004 <mailto:dorner@astro.uni-wuerzburg.de> 21 21 # 22 # Copyright: MAGIC Software Development, 2000-200 422 # Copyright: MAGIC Software Development, 2000-2006 23 23 # 24 24 # 25 25 # ======================================================================== 26 26 # 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 # 28 46 29 47 user=`whoami` … … 39 57 40 58 echo "checking disk for ccfiles..." 41 42 59 filename=$filesondisklogpath/ccfilesondisk-$date.txt 43 60 column=fCCFileAvail 44 45 61 find $subsystemdir/cc/ -name '*_S.rep' | cut -d_ -f2 > $filename 46 47 62 48 63 echo "resetting runs..." … … 55 70 56 71 57 58 72 echo "checking disk for cacofiles..." 59 60 73 filename=$filesondisklogpath/cacofilesondisk-$date.txt 61 74 column=fCaCoFileAvail 62 63 75 find $subsystemdir/caco/ -name '*.txt' | cut -d_ -f8 | grep [0-9] > $filename 64 65 76 66 77 echo "resetting runs..." … … 71 82 *) echo "check0=$check0 -> ERROR -> something went wrong while resetting";; 72 83 esac 73 74 75 84 76 85 echo "checking missing cacofiles..." … … 83 92 84 93 missingcacoruns=(`cat $filesondisklogpath/findcacofiles-$date.txt`) 85 86 94 for missingcacorun in ${missingcacoruns[@]} 87 95 do … … 121 129 122 130 123 124 131 echo "checking disk for rawfiles..." 125 126 132 filename=$filesondisklogpath/rawfilesondisk-$date.txt 127 133 column=fRawFileAvail 128 129 134 find $datapath -name '*.raw' | cut -d_ -f2 > $filename 130 135
Note:
See TracChangeset
for help on using the changeset viewer.