- Timestamp:
- 07/30/05 01:15:40 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/writesequencefiles
r7232 r7233 43 43 44 44 scriptlogpath=$logpath/run/writesequencefiles/`date +%Y/%m/%d` 45 if [ ! -d $scriptlogpath ] 46 then 47 mkdir -pv $scriptlogpath 48 if [ ! -d $scriptlogpath ] 49 then 50 echo "could not make scriptlogpath "$scriptlogpath 51 exit 52 fi 53 fi 54 45 makedir $scriptlogpath 55 46 scriptlog=$scriptlogpath/runwritesequencefiles-$datetime.log 56 47 57 48 date >> $scriptlog 2>&1 58 49 59 60 if [ ! -d $getstatuslogpath ] 61 then 62 mkdir -pv $getstatuslogpath >> $scriptlog 2>&1 63 if [ ! -d $getstatuslogpath ] 64 then 65 echo "could not make getstatuslogpath "$getstatuslogpath >> $scriptlog 2>&1 66 date >> $scriptlog 2>&1 67 exit 68 fi 69 fi 50 makedir $getstatuslogpath >> $scriptlog 2>&1 70 51 71 52 cd $mars … … 108 89 no2=`printf %08d $sequence` 109 90 sequencepath=$sequpath/$no 110 if [ ! -d $sequencepath ] 111 then 112 mkdir -pv $sequencepath >> $scriptlog 2>&1 113 if [ ! -d $sequencepath ] 114 then 115 echo "could not make sequencepath $sequencepath -> continue " >> $scriptlog 2>&1 116 continue 117 fi 118 fi 91 makedir $sequencepath >> $scriptlog 2>&1 119 92 120 93 writesequencefilelogpath=$logpath/writesequencefile/$no 121 94 echo "writesequencefilelogpath: "$writesequencefilelogpath >> $scriptlog 2>&1 122 if [ ! -d $writesequencefilelogpath ] 123 then 124 mkdir -pv $writesequencefilelogpath >> $scriptlog 2>&1 125 if [ ! -d $writesequencefilelogpath ] 126 then 127 echo "could not make writesequencefilelogpath $writesequencefilelogpath -> continue " >> $scriptlog 2>&1 128 continue 129 fi 130 fi 95 makedir $writesequencefilelogpath >> $scriptlog 2>&1 131 96 132 97 echo "write sequencefile for sequence $sequence" >> $scriptlog 2>&1 … … 136 101 echo "-> inserting the status for writesequencefile for sequence $sequence into the db" >> $scriptlog 2>&1 137 102 setstatuslogpath=$logpath/setstatus/writesequencefile/$no 138 if [ ! -d $setstatuslogpath ] 139 then 140 mkdir -pv $setstatuslogpath >> $scriptlog 2>&1 141 if [ ! -d $setstatuslogpath ] 142 then 143 echo "could not make setstatuslogpath "$setstatuslogpath >> $scriptlog 2>&1 144 continue 145 fi 146 fi 103 makedir $setstatuslogpath >> $scriptlog 2>&1 147 104 setstatuslog=$setstatuslogpath/setstatus-writesequencefile-$no2.log 105 148 106 check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'` 149 107 case $check4 in
Note:
See TracChangeset
for help on using the changeset viewer.