Changeset 7477 for trunk/MagicSoft/Mars/datacenter/scripts/runstar
- Timestamp:
- 02/03/06 16:49:10 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/runstar
r7469 r7477 45 45 table=SequenceProcessStatus 46 46 column=fStar 47 date=NULL48 datetime=`date +%F-%H-%M-%S`49 year=`date +%Y`50 47 #pno=500 # number of processes, i.e. number of todo-files 51 48 52 49 todofile=$listpath/ToDo-$table-$column 53 getstatuslogpath=$logpath/getstatus/$program/$year 54 getstatuslog=$getstatuslogpath/getstatus-$program-$datetime.log 50 lockfile=$lockpath/lock-getting-$program-list.txt 55 51 56 52 scriptlogpath=$logpath/run/$program/`date +%Y/%m/%d` … … 60 56 date >> $scriptlog 2>&1 61 57 62 makedir $getstatuslogpath >> $scriptlog 2>&163 64 58 cd $mars 65 59 66 60 # check if getting of list is already running 67 date > $lock path/lock-getting-$program-list.txt>> $scriptlog 2>&161 date > $lockfile >> $scriptlog 2>&1 68 62 checklock0=$? 69 63 case $checklock0 in … … 83 77 echo " -> choose one file and start calculation of image parameter" >> $scriptlog 2>&1 84 78 else 85 echo "getting list..." >> $scriptlog 2>&1 86 check0=`root -q -b $macrospath/getdolist.C+\("\"$table\""\,"\"$column\""\,"\"$date\""\,"\"$listpath\""\) | tee $getstatuslog | grep int | sed -e 's/(int)//'` 87 88 case $check0 in 89 1) echo "check0=$check0 -> everything ok -> run $program" >> $scriptlog 2>&1;; 90 *) echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;; 91 esac 79 # get todo list 80 getdolist >> $scriptlog 2>&1 81 rm -v $lockfile >> $scriptlog 2>&1 92 82 fi 93 94 rm -v $lockpath/lock-getting-$program-list.txt >> $scriptlog 2>&195 83 96 84 # choosing todo file … … 130 118 then 131 119 echo "nothing to do -> exit" >> $scriptlog 2>&1 132 rm -v $todofile >> $scriptlog 2>&1 133 rm -v $lockfile >> $scriptlog 2>&1 134 date >> $scriptlog 2>&1 135 exit 120 finish >> $scriptlog 2>&1 136 121 fi 137 122 … … 170 155 done 171 156 172 rm -v $todofile >> $scriptlog 2>&1 173 rm -v $lockfile >> $scriptlog 2>&1 157 finish >> $scriptlog 2>&1 174 158 175 set +C176 177 date >> $scriptlog 2>&1178
Note:
See TracChangeset
for help on using the changeset viewer.