Changeset 7233 for trunk/MagicSoft/Mars/datacenter/scripts/doexclusions
- Timestamp:
- 07/30/05 01:15:40 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/doexclusions
r7232 r7233 45 45 46 46 scriptlogpath=$logpath/run/doexclusions/`date +%Y/%m` 47 if [ ! -d $scriptlogpath ] 48 then 49 mkdir -pv $scriptlogpath 50 if [ ! -d $scriptlogpath ] 51 then 52 echo "could not make scriptlogpath "$scriptlogpath 53 exit 54 fi 55 fi 47 makedir $scriptlogpath 56 48 57 49 scriptlog=$scriptlogpath/doexclusions-$datetime.log … … 59 51 date >> $scriptlog 2>&1 60 52 61 if [ ! -d $getstatuslogpath ] 62 then 63 mkdir -pv $getstatuslogpath >> $scriptlog 2>&1 64 if [ ! -d $getstatuslogpath ] 65 then 66 echo "could not make getstatuslogpath "$getstatuslogpath >> $scriptlog 2>&1 67 date >> $scriptlog 2>&1 68 exit 69 fi 70 fi 53 makedir $getstatuslogpath >> $scriptlog 2>&1 71 54 72 55 date > $lockpath/lock-doexclusions.txt >> $scriptlog 2>&1 … … 108 91 year2=`echo $date | cut -c 1-4` 109 92 doexclusionspath=$logpath/doexclusions/$year2 110 if [ ! -d $doexclusionspath ] 111 then 112 mkdir -pv $doexclusionspath >> $scriptlog 2>&1 113 if [ ! -d $doexclusionspath ] 114 then 115 echo "could not make doexclusionspath "$doexclusionspath >> $scriptlog 2>&1 116 continue 117 fi 118 fi 93 makedir $doexclusionspath >> $scriptlog 2>&1 94 119 95 check1=`root -q -b $macrospath/doexclusions.C+\("\"$date\""\) | tee $doexclusionspath/doexclusions-$date.log | grep int | sed -e 's/(int)//'` 120 96 … … 122 98 1) echo "check1=1 -> everthing ok -> setting status..." 123 99 setstatuslogpath=$logpath/setstatus/doexclusions/$year2 124 if [ ! -d $setstatuslogpath ] 125 then 126 mkdir -pv $setstatuslogpath >> $scriptlog 2>&1 127 if [ ! -d $setstatuslogpath ] 128 then 129 echo "could not make setstatuslogpath "$setstatuslogpath >> $scriptlog 2>&1 130 continue 131 fi 132 fi 100 makedir $setstatuslogpath >> $scriptlog 2>&1 101 133 102 check2=`root -q -b $macrospath/setstatus.C+\("\"$date\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslogpath/setstatus-doexclusions-$date.log | grep int | sed -e 's/(int)//'` 103 134 104 case $check2 in 135 105 1) echo "check2=$check2 -> everthing ok, status has been set";;
Note:
See TracChangeset
for help on using the changeset viewer.