Changeset 7476 for trunk/MagicSoft/Mars/datacenter/scripts/fillstar
- Timestamp:
- 02/03/06 16:42:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/fillstar
r7471 r7476 44 44 table=SequenceProcessStatus 45 45 column=fFillStar 46 date=NULL47 datetime=`date +%F-%H-%M-%S`48 year=`date +%Y`49 46 50 47 todofile=$listpath/ToDo-$table-$column.txt 51 getstatuslogpath=$logpath/getstatus/$program/$year 52 getstatuslog=$getstatuslogpath/getstatus-$program-$datetime.log 48 lockfile=$lockpath/lock-$program.txt 53 49 54 50 scriptlogpath=$logpath/run/$program/`date +%Y/%m/%d` … … 58 54 date >> $scriptlog 2>&1 59 55 60 makedir $getstatuslogpath >> $scriptlog 2>&161 62 56 cd $mars 63 57 64 58 # check if the script is already running 65 date > $lock path/lock-$table-$column.txt>> $scriptlog 2>&159 date > $lockfile >> $scriptlog 2>&1 66 60 checklock0=$? 67 61 case $checklock0 in … … 75 69 76 70 # get todo list 77 echo "getting list..." >> $scriptlog 2>&1 78 check0=`root -q -b $macrospath/getdolist.C+\("\"$table\""\,"\"$column\""\,"\"$date\""\,"\"$listpath\""\) | tee $getstatuslog | grep int | sed -e 's/(int)//'` 71 getdolist >> $scriptlog 2>&1 79 72 80 case $check0 in81 1) echo "check0=$check0 -> everything ok -> run $program" >> $scriptlog 2>&1;;82 *) echo "check0=$check0 -> ERROR -> could not get list -> exit" >> $scriptlog 2>&183 rm -v $todofile >> $scriptlog 2>&184 rm -v $lockpath/lock-$table-$column.txt >> $scriptlog 2>&185 date >> $scriptlog 2>&186 exit;;87 esac88 73 89 74 # retrieve sequences from todo file … … 92 77 then 93 78 echo "nothing to do -> exit" >> $scriptlog 2>&1 94 rm -v $todofile >> $scriptlog 2>&1 95 rm -v $lockpath/lock-$table-$column.txt >> $scriptlog 2>&1 96 date >> $scriptlog 2>&1 97 exit 79 finish >> $scriptlog 2>&1 98 80 fi 99 81 … … 128 110 done 129 111 130 rm -v $todofile >> $scriptlog 2>&1 131 rm -v $lockpath/lock-$table-$column.txt >> $scriptlog 2>&1 112 finish >> $scriptlog 2>&1 132 113 133 set +C134 135 date >> $scriptlog 2>&1136
Note:
See TracChangeset
for help on using the changeset viewer.