Changeset 7030 for trunk/MagicSoft/Mars/datacenter/scripts
- Timestamp:
- 05/13/05 15:58:07 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/scripts
- Files:
-
- 1 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/buildsequenceentries
r6934 r7030 27 27 # 28 28 29 export ROOTSYS=/opt/root_v3.10.02 30 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib 31 export PATH=$PATH:$ROOTSYS/bin 29 source /home/operator/Mars/datacenter/scripts/sourcefile 32 30 33 31 set -C 34 35 mars=/home/operator/Mars36 macrospath=$mars/datacenter/macros37 scriptspath=$mars/datacenter/scripts38 32 39 33 cd $mars … … 46 40 47 41 todofile=/magic/datacenter/lists/ToDo-$table-$column.txt 48 lockpath=/magic/datacenter/locks49 logpath=/magic/datacenter/autologs50 42 getstatuslogpath=$logpath/getstatus/buildsequenceentries/$year 51 43 getstatuslog=$getstatuslogpath/getstatus-buildsequenceentries-$datetime.log -
trunk/MagicSoft/Mars/datacenter/scripts/checkfilesforsequenceavail
r6934 r7030 27 27 # 28 28 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 29 source /home/operator/Mars/datacenter/scripts/sourcefile 35 30 36 31 table=SequenceProcessStatus … … 41 36 42 37 todofile=/magic/datacenter/lists/ToDo-$table-$column.txt 43 logpath=/magic/datacenter/autologs44 38 getstatuslogpath=$logpath/getstatus/checkfileavail/$year 45 39 getstatuslog=$getstatuslogpath/getstatus-$table-$column-$datetime.log -
trunk/MagicSoft/Mars/datacenter/scripts/copyscript
r6999 r7030 57 57 # 58 58 59 export ROOTSYS=/opt/root_v3.10.02 60 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib 61 export PATH=$PATH:$ROOTSYS/bin 59 source /home/operator/Mars/datacenter/scripts/sourcefile 62 60 63 61 set -C … … 65 63 umask 0002 66 64 67 mars=/home/operator/Mars68 macrospath=$mars/datacenter/macros69 scriptspath=$mars/datacenter/scripts70 65 transdir=/magic/datacenter/transfer 71 66 char=28 72 67 extern=MAGIC@virgo:/data/MAGIC/transfer 73 68 datetime=`date +%F-%H-%M-%S` 74 75 lockpath=/magic/datacenter/locks76 logpath=/magic/datacenter/autologs77 69 78 70 scriptlogpath=$logpath/run/copyscript/`date +%Y/%m/%d` -
trunk/MagicSoft/Mars/datacenter/scripts/correcttime
r6934 r7030 27 27 # 28 28 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 29 source /home/operator/Mars/datacenter/scripts/sourcefile 35 30 36 31 table=RunProcessStatus … … 41 36 42 37 listdir=/magic/datacenter/lists 43 logpath=/magic/datacenter/autologs44 38 getstatuslogpath=$logpath/getstatus/correct_raw_time/$year 45 39 getstatuslog=$getstatuslogpath/getstatus-$table-$column-$datetime.log -
trunk/MagicSoft/Mars/datacenter/scripts/doexclusions
r6946 r7030 27 27 # 28 28 29 export ROOTSYS=/opt/root_v3.10.02 30 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib 31 export PATH=$PATH:$ROOTSYS/bin 29 source /home/operator/Mars/datacenter/scripts/sourcefile 32 30 33 31 set -C 34 35 mars=/home/operator/Mars36 macrospath=$mars/datacenter/macros37 scriptspath=$mars/datacenter/scripts38 32 39 33 cd $mars … … 46 40 47 41 todofile=/magic/datacenter/lists/ToDo-$table-$column.txt 48 lockpath=/magic/datacenter/locks49 logpath=/magic/datacenter/autologs50 42 getstatuslogpath=$logpath/getstatus/doexclusions/$year 51 43 getstatuslog=$getstatuslogpath/getstatus-doexcludions-$datetime.log -
trunk/MagicSoft/Mars/datacenter/scripts/filesondisk
r6934 r7030 27 27 # 28 28 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 29 source /home/operator/Mars/datacenter/scripts/sourcefile 35 30 36 31 cd $mars … … 39 34 subsystemdir=/magic/subsystemdata 40 35 rawdir=/magic/data 41 logpath=/magic/datacenter/autologs/filesondisk/`date +%Y`36 filesondisklogpath=$logpath/filesondisk/`date +%Y` 42 37 43 if [ ! -d $ logpath ]38 if [ ! -d $filesondisklogpath ] 44 39 then 45 mkdir -pv $ logpath46 if [ ! -d $ logpath ]40 mkdir -pv $filesondisklogpath 41 if [ ! -d $filesondisklogpath ] 47 42 then 48 echo "could not make directory "$ logpath43 echo "could not make directory "$filesondisklogpath 49 44 exit 50 45 fi … … 55 50 echo "checking disk for ccfiles..." 56 51 57 filename=$ logpath/ccfilesondisk-$date.txt52 filename=$filesondisklogpath/ccfilesondisk-$date.txt 58 53 column=fCCFileAvail 59 54 … … 62 57 63 58 echo "resetting runs..." 64 check3=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $ logpath/resetall-$column-$date.log | grep int | sed -e 's/(int)//'`59 check3=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $filesondisklogpath/resetall-$column-$date.log | grep int | sed -e 's/(int)//'` 65 60 66 61 case $check3 in … … 73 68 echo "checking disk for cacofiles..." 74 69 75 filename=$ logpath/cacofilesondisk-$date.txt70 filename=$filesondisklogpath/cacofilesondisk-$date.txt 76 71 column=fCaCoFileAvail 77 72 … … 80 75 81 76 echo "resetting runs..." 82 check0=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $ logpath/resetall-$column-$date.log | grep int | sed -e 's/(int)//'`77 check0=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $filesondisklogpath/resetall-$column-$date.log | grep int | sed -e 's/(int)//'` 83 78 84 79 case $check0 in … … 90 85 91 86 echo "checking missing cacofiles..." 92 check1=`root -q -b $macrospath/findcacofiles.C+\("\"$date\""\) | tee $ logpath/findcacofiles-$date.log | grep int | sed -e 's/(int)//'`87 check1=`root -q -b $macrospath/findcacofiles.C+\("\"$date\""\) | tee $filesondisklogpath/findcacofiles-$date.log | grep int | sed -e 's/(int)//'` 93 88 94 89 case $check1 in … … 97 92 esac 98 93 99 missingcacoruns=(`cat $ logpath/findcacofiles-$date.txt`)94 missingcacoruns=(`cat $filesondisklogpath/findcacofiles-$date.txt`) 100 95 101 96 for missingcacorun in ${missingcacoruns[@]} … … 122 117 else 123 118 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)//'` 125 120 126 121 case $check2 in … … 139 134 echo "checking disk for rawfiles..." 140 135 141 filename=$ logpath/rawfilesondisk-$date.txt136 filename=$filesondisklogpath/rawfilesondisk-$date.txt 142 137 column=fRawFileAvail 143 138 … … 145 140 146 141 echo "resetting runs..." 147 check4=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $ logpath/resetall-$column-$date.log | grep int | sed -e 's/(int)//'`142 check4=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $filesondisklogpath/resetall-$column-$date.log | grep int | sed -e 's/(int)//'` 148 143 149 144 case $check4 in -
trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto
r6940 r7030 27 27 # 28 28 29 export ROOTSYS=/opt/root_v3.10.02 30 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib 31 export PATH=$PATH:$ROOTSYS/bin 29 source /home/operator/Mars/datacenter/scripts/sourcefile 32 30 33 31 set -C 34 35 mars=/home/operator/Mars36 macrospath=$mars/datacenter/macros37 scriptspath=$mars/datacenter/scripts38 32 39 33 table=SequenceProcessStatus … … 44 38 45 39 todofile=/magic/datacenter/lists/ToDo-$table-$column.txt 46 lockpath=/magic/datacenter/locks47 logpath=/magic/datacenter/autologs48 40 getstatuslogpath=$logpath/getstatus/fillcallisto/$year 49 41 getstatuslog=$getstatuslogpath/getstatus-fillcallisto-$datetime.log -
trunk/MagicSoft/Mars/datacenter/scripts/fillstar
r7019 r7030 27 27 # 28 28 29 export ROOTSYS=/opt/root_v3.10.02 30 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib 31 export PATH=$PATH:$ROOTSYS/bin 29 source /home/operator/Mars/datacenter/scripts/sourcefile 32 30 33 31 set -C 34 35 mars=/home/operator/Mars36 macrospath=$mars/datacenter/macros37 scriptspath=$mars/datacenter/scripts38 32 39 33 table=SequenceProcessStatus … … 44 38 45 39 todofile=/magic/datacenter/lists/ToDo-$table-$column.txt 46 lockpath=/magic/datacenter/locks47 logpath=/magic/datacenter/autologs48 40 getstatuslogpath=$logpath/getstatus/fillstar/$year 49 41 getstatuslog=$getstatuslogpath/getstatus-fillstar-$datetime.log -
trunk/MagicSoft/Mars/datacenter/scripts/runcallisto
r7024 r7030 27 27 # 28 28 29 export ROOTSYS=/opt/root_v3.10.02 30 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib 31 export PATH=$PATH:$ROOTSYS/bin 29 source /home/operator/Mars/datacenter/scripts/sourcefile 32 30 33 31 set -C 34 32 35 mars=/home/operator/Mars36 macrospath=$mars/datacenter/macros37 scriptspath=$mars/datacenter/scripts38 33 callistorcnew=/magic/datacenter/setup/callisto/callisto.rc 39 34 … … 46 41 47 42 todofile=/magic/datacenter/lists/ToDo-$table-$column 48 lockpath=/magic/datacenter/locks49 logpath=/magic/datacenter/autologs50 43 getstatuslogpath=$logpath/getstatus/callisto/$year 51 44 getstatuslog=$getstatuslogpath/getstatus-callisto-$datetime.log -
trunk/MagicSoft/Mars/datacenter/scripts/runstar
r7024 r7030 27 27 # 28 28 29 export ROOTSYS=/opt/root_v3.10.02 30 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib 31 export PATH=$PATH:$ROOTSYS/bin 29 source /home/operator/Mars/datacenter/scripts/sourcefile 32 30 33 31 set -C 34 35 mars=/home/operator/Mars36 macrospath=$mars/datacenter/macros37 scriptspath=$mars/datacenter/scripts38 32 39 33 table=SequenceProcessStatus … … 45 39 46 40 todofile=/magic/datacenter/lists/ToDo-$table-$column 47 lockpath=/magic/datacenter/locks48 logpath=/magic/datacenter/autologs49 41 getstatuslogpath=$logpath/getstatus/star/$year 50 42 getstatuslog=$getstatuslogpath/getstatus-star-$datetime.log -
trunk/MagicSoft/Mars/datacenter/scripts/writesequencefiles
r6972 r7030 27 27 # 28 28 29 export ROOTSYS=/opt/root_v3.10.02 30 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib 31 export PATH=$PATH:$ROOTSYS/bin 29 source /home/operator/Mars/datacenter/scripts/sourcefile 32 30 33 31 set -C 34 35 mars=/home/operator/Mars36 macrospath=$mars/datacenter/macros37 scriptspath=$mars/datacenter/scripts38 32 39 33 table=SequenceProcessStatus … … 44 38 45 39 todofile=/magic/datacenter/lists/ToDo-$table-$column.txt 46 lockpath=/magic/datacenter/locks47 logpath=/magic/datacenter/autologs48 40 getstatuslogpath=$logpath/getstatus/writesequencefiles/$year 49 41 getstatuslog=$getstatuslogpath/getstatus-writesequencefiles-$datetime.log
Note:
See TracChangeset
for help on using the changeset viewer.