- Timestamp:
- 07/26/06 15:51:27 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/filesondisk
r7806 r7807 111 111 do 112 112 runno=$missingcacorun 113 echo " no cacofile foundfor run "$runno >> $scriptlog 2>&1114 echo " finding cacofile" >> $scriptlog 2>&1115 ccfile=`find $subsystemdir/cc/ -name [2][0][0-2][0-9][0,1][0-9][0-3][0-9]_*${runno}_[P,D,C,S]_*_S.rep` 116 echo " ccfile: "$ccfile >> $scriptlog 2>&1113 echo "missing cacofile for run "$runno >> $scriptlog 2>&1 114 echo "-> finding cacofile" >> $scriptlog 2>&1 115 ccfile=`find $subsystemdir/cc/ -name [2][0][0-2][0-9][0,1][0-9][0-3][0-9]_*${runno}_[P,D,C,S]_*_S.rep` 2>/dev/null 116 echo " ccfile: "$ccfile >> $scriptlog 2>&1 117 117 if [ "$ccfile" = "" ] 118 118 then 119 echo " no ccfile found for run "$runno >> $scriptlog 2>&1119 echo " no ccfile found for run "$runno >> $scriptlog 2>&1 120 120 continue 121 121 fi … … 125 125 path=`dirname $ccfile` 126 126 path=`echo $path | sed -e 's/cc/caco/'` 127 cacofile=`find $path -name *$newrun*` 127 cacofile=`find $path -name *$newrun*` 2>/dev/null 128 128 if [ "$cacofile" = "" ] 129 129 then 130 130 continue 131 131 else 132 echo " inserting cacofile $file for run $missingcacorun..." >> $scriptlog 2>&1132 echo " inserting cacofile $file for run $missingcacorun..." >> $scriptlog 2>&1 133 133 check2=`root -q -b $macrospath/insertcacofile.C+\("\"$runno\""\,"\"$newrun\""\) | tee $filesondisklogpath/insertcacofile-$missingcacorun.log | grep int | sed -e 's/(int)//'` 134 134 135 135 case $check2 in 136 1) echo " check2=$check2 -> everything ok -> insert is done" >> $scriptlog 2>&1 ;;137 *) echo " check2=$check2 -> ERROR -> something went wrong while inserting run "$missingcacorun >> $scriptlog 2>&1 ;;136 1) echo " check2=$check2 -> everything ok -> insert is done" >> $scriptlog 2>&1 ;; 137 *) echo " check2=$check2 -> ERROR -> something went wrong while inserting run "$missingcacorun >> $scriptlog 2>&1 ;; 138 138 esac 139 139 break 140 140 fi 141 141 done 142 echo "cacofile: "$cacofile >> $scriptlog 2>&1 143 142 if [ "$cacofile" = "" ] 143 then 144 echo " no cacofile found for run "$runno >> $scriptlog 2>&1 145 else 146 echo " cacofile: "$cacofile >> $scriptlog 2>&1 147 fi 144 148 done 145 149
Note:
See TracChangeset
for help on using the changeset viewer.