Changeset 7465 for trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto
- Timestamp:
- 01/30/06 17:13:07 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto
r7460 r7465 38 38 39 39 user=`whoami` 40 program=fillcallisto 40 41 source /home/$user/Mars/datacenter/scripts/sourcefile 41 42 … … 49 50 50 51 todofile=$listpath/ToDo-$table-$column.txt 51 getstatuslogpath=$logpath/getstatus/ fillcallisto/$year52 getstatuslog=$getstatuslogpath/getstatus- fillcallisto-$datetime.log52 getstatuslogpath=$logpath/getstatus/$program/$year 53 getstatuslog=$getstatuslogpath/getstatus-$program-$datetime.log 53 54 54 scriptlogpath=$logpath/run/ fillcallisto/`date +%Y/%m/%d`55 scriptlogpath=$logpath/run/$program/`date +%Y/%m/%d` 55 56 makedir $scriptlogpath 56 scriptlog=$scriptlogpath/run fillcallisto-$datetime.log57 scriptlog=$scriptlogpath/run$program-$datetime.log 57 58 58 59 date >> $scriptlog 2>&1 … … 68 69 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 69 70 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 70 echo "-> fillcallistois running -> exit" >> $scriptlog 2>&171 echo "-> $program is running -> exit" >> $scriptlog 2>&1 71 72 date >> $scriptlog 2>&1 72 73 exit;; … … 79 80 80 81 case $check0 in 81 1) echo "check0=$check0 -> everything ok -> run fillcallisto" >> $scriptlog 2>&1;;82 1) echo "check0=$check0 -> everything ok -> run $program" >> $scriptlog 2>&1;; 82 83 *) echo "check0=$check0 -> ERROR -> could not get list -> exit" >> $scriptlog 2>&1 83 84 rm -v $todofile >> $scriptlog 2>&1 … … 106 107 signalfile=$path/signal$no2.root 107 108 calibfile=$path/calib$no2.root 108 fillcallistologpath=$logpath/ fillcallisto/$no109 echo " fillcallistologpath: "$fillcallistologpath >> $scriptlog 2>&1109 fillcallistologpath=$logpath/$program/$no 110 echo "$programlogpath: "$fillcallistologpath >> $scriptlog 2>&1 110 111 makedir $fillcallistologpath >> $scriptlog 2>&1 111 112 fillcaliblog=$fillcallistologpath/fillcalib-$sequence.log 112 113 fillsignallog=$fillcallistologpath/fillsignal-$sequence.log 113 114 114 echo "run fillcallistofor sequence $sequence" >> $scriptlog 2>&1115 echo "run $program for sequence $sequence" >> $scriptlog 2>&1 115 116 echo "run fillcalib..." >> $scriptlog 2>&1 116 117 check1=`root -q -b $macrospath/fillcalib.C+\("\"$calibfile\""\,kFALSE\) | tee $fillcaliblog | grep int | sed -e 's/(int)//'` … … 125 126 case $check2 in 126 127 1) echo "check2=$check2 -> everything ok " >> $scriptlog 2>&1 127 echo "-> inserting the status for fillcallisto for sequence $sequence into the db" >> $scriptlog 2>&1 128 setstatuslogpath=$logpath/setstatus/fillcallisto/$no 129 makedir $setstatuslogpath >> $scriptlog 2>&1 130 setstatuslog=$setstatuslogpath/setstatus-fillcallisto 131 132 check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog-$sequence.log | grep int | sed -e 's/(int)//'` 133 case $check4 in 134 1) echo "check4=$check4 -> everything ok, status has been set" >> $scriptlog 2>&1;; 135 *) echo "check4=$check4 -> ERROR -> step could not be set" >> $scriptlog 2>&1;; 136 esac 128 echo "-> inserting the status for $program for sequence $sequence into the db" >> $scriptlog 2>&1 129 statustime="Now()" 130 failed="NULL" 131 starttime="NULL" 132 failedtime="NULL" 133 var1=$no 134 var2=$sequence 135 setstatus 137 136 ;; 138 137 *) echo "check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;;
Note:
See TracChangeset
for help on using the changeset viewer.