- Timestamp:
- 07/30/05 01:15:40 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/buildsequenceentries
r7232 r7233 45 45 46 46 scriptlogpath=$logpath/run/buildsequenceentries/`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 56 47 makedir $scriptlogpath 57 48 scriptlog=$scriptlogpath/buildsequenceentries-$datetime.log 58 49 59 50 date >> $scriptlog 2>&1 60 51 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 52 makedir $getstatuslogpath >> $scriptlog 2>&1 71 53 72 54 date > $lockpath/lock-buildsequenceentries.txt >> $scriptlog 2>&1 … … 108 90 year2=`echo $date | cut -c 1-4` 109 91 buildsequentriespath=$logpath/buildsequenceentries/$year2 110 if [ ! -d $buildsequentriespath ] 111 then 112 mkdir -pv $buildsequentriespath >> $scriptlog 2>&1 113 if [ ! -d $buildsequentriespath ] 114 then 115 echo "could not make buildsequentriespath "$buildsequentriespath >> $scriptlog 2>&1 116 continue 117 fi 118 fi 92 makedir $buildsequentriespath >> $scriptlog 2>&1 93 119 94 check1=`root -q -b $macrospath/buildsequenceentries.C+\("\"$date\""\,"\"$datapath\""\,"\"$sequpath\""\,kFALSE\) | tee $buildsequentriespath/buildsequenceentries-$date.log | grep int | sed -e 's/(int)//'` 120 95 … … 122 97 1) echo "check1=$check1 -> everthing ok -> setting status..." >> $scriptlog 2>&1 123 98 setstatuslogpath=$logpath/setstatus/buildsequenceentries/$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 99 makedir $setstatuslogpath >> $scriptlog 2>&1 100 133 101 check2=`root -q -b $macrospath/setstatus.C+\("\"$date\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslogpath/setstatus-buildsequenceentries-$date.log | grep int | sed -e 's/(int)//'` 134 102 case $check2 in
Note:
See TracChangeset
for help on using the changeset viewer.