Changeset 7233 for trunk/MagicSoft/Mars/datacenter/scripts/fillstar
- Timestamp:
- 07/30/05 01:15:40 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/fillstar
r7232 r7233 43 43 44 44 scriptlogpath=$logpath/run/fillstar/`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/runfillstar-$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 … … 111 92 fillstarlogpath=$logpath/fillstar/$no 112 93 echo "fillstarlogpath: "$fillstarlogpath >> $scriptlog 2>&1 113 if [ ! -d $fillstarlogpath ] 114 then 115 mkdir -pv $fillstarlogpath >> $scriptlog 2>&1 116 if [ ! -d $fillstarlogpath ] 117 then 118 echo "could not make fillstarlogpath $fillstarlogpath -> continue " >> $scriptlog 2>&1 119 continue 120 fi 121 fi 94 makedir $fillstarlogpath >> $scriptlog 2>&1 122 95 fillstarlog=$fillstarlogpath/fillstar-$sequence.log 123 96 … … 128 101 echo "-> inserting the status for fillstar for sequence $sequence into the db" >> $scriptlog 2>&1 129 102 setstatuslogpath=$logpath/setstatus/fillstar/$no 130 if [ ! -d $setstatuslogpath ] 131 then 132 mkdir -pv $setstatuslogpath >> $scriptlog 2>&1 133 if [ ! -d $setstatuslogpath ] 134 then 135 echo "could not make setstatuslogpath "$setstatuslogpath >> $scriptlog 2>&1 136 continue 137 fi 138 fi 103 makedir $setstatuslogpath >> $scriptlog 2>&1 139 104 setstatuslog=$setstatuslogpath/setstatus-fillstar-$no2.log 105 140 106 check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'` 141 107 case $check4 in
Note:
See TracChangeset
for help on using the changeset viewer.