Changeset 7465 for trunk/MagicSoft/Mars/datacenter/scripts/fillstar
- Timestamp:
- 01/30/06 17:13:07 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/fillstar
r7460 r7465 37 37 38 38 user=`whoami` 39 program=fillstar 39 40 source /home/$user/Mars/datacenter/scripts/sourcefile 40 41 … … 48 49 49 50 todofile=$listpath/ToDo-$table-$column.txt 50 getstatuslogpath=$logpath/getstatus/ fillstar/$year51 getstatuslog=$getstatuslogpath/getstatus- fillstar-$datetime.log51 getstatuslogpath=$logpath/getstatus/$program/$year 52 getstatuslog=$getstatuslogpath/getstatus-$program-$datetime.log 52 53 53 scriptlogpath=$logpath/run/ fillstar/`date +%Y/%m/%d`54 scriptlogpath=$logpath/run/$program/`date +%Y/%m/%d` 54 55 makedir $scriptlogpath 55 scriptlog=$scriptlogpath/run fillstar-$datetime.log56 scriptlog=$scriptlogpath/run$program-$datetime.log 56 57 57 58 date >> $scriptlog 2>&1 … … 67 68 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 68 69 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 69 echo "-> fillstaris running -> exit" >> $scriptlog 2>&170 echo "-> $program is running -> exit" >> $scriptlog 2>&1 70 71 date >> $scriptlog 2>&1 71 72 exit;; … … 78 79 79 80 case $check0 in 80 1) echo "check0=$check0 -> everything ok -> run fillstar" >> $scriptlog 2>&1;;81 1) echo "check0=$check0 -> everything ok -> run $program" >> $scriptlog 2>&1;; 81 82 *) echo "check0=$check0 -> ERROR -> could not get list -> exit" >> $scriptlog 2>&1 82 83 rm -v $todofile >> $scriptlog 2>&1 … … 105 106 path="$datapath/star/$no/$no2" 106 107 starfile=$path/star$no2.root 107 fillstarlogpath=$logpath/ fillstar/$no108 echo " fillstarlogpath: "$fillstarlogpath >> $scriptlog 2>&1108 fillstarlogpath=$logpath/$program/$no 109 echo "$programlogpath: "$fillstarlogpath >> $scriptlog 2>&1 109 110 makedir $fillstarlogpath >> $scriptlog 2>&1 110 fillstarlog=$fillstarlogpath/ fillstar-$sequence.log111 fillstarlog=$fillstarlogpath/$program-$sequence.log 111 112 112 echo "run fillstarfor sequence $sequence" >> $scriptlog 2>&1113 echo "run $program for sequence $sequence" >> $scriptlog 2>&1 113 114 check2=`root -q -b $macrospath/fillstar.C+\("\"$starfile\""\,kFALSE\) | tee $fillstarlog | grep int | sed -e 's/(int)//'` 114 115 case $check2 in 115 116 1) echo "check2=$check2 -> everything ok " >> $scriptlog 2>&1 116 echo "-> inserting the status for fillstar for sequence $sequence into the db" >> $scriptlog 2>&1 117 setstatuslogpath=$logpath/setstatus/fillstar/$no 118 makedir $setstatuslogpath >> $scriptlog 2>&1 119 setstatuslog=$setstatuslogpath/setstatus-fillstar-$no2.log 120 121 check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'` 122 case $check4 in 123 1) echo "check4=$check4 -> everything ok, status has been set" >> $scriptlog 2>&1;; 124 *) echo "check4=$check4 -> ERROR -> step could not be set" >> $scriptlog 2>&1;; 125 esac 117 echo "-> inserting the status for $program for sequence $sequence into the db" >> $scriptlog 2>&1 118 statustime="Now()" 119 failed="NULL" 120 starttime="NULL" 121 failedtime="NULL" 122 var1=$no 123 var2=$no2 124 setstatus 126 125 ;; 127 126 *) echo "check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;;
Note:
See TracChangeset
for help on using the changeset viewer.