Changeset 7477 for trunk/MagicSoft/Mars/datacenter/scripts/runganymed
- Timestamp:
- 02/03/06 16:49:10 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/runganymed
r7469 r7477 45 45 table=DataSetProcessStatus 46 46 column=fGanymed 47 date=NULL48 datetime=`date +%F-%H-%M-%S`49 year=`date +%Y`50 47 #pno=24 # 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 run $program" >> $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 … … 178 163 done 179 164 180 rm -v $todofile >> $scriptlog 2>&1 181 rm -v $lockfile >> $scriptlog 2>&1 165 finish >> $scriptlog 2>&1 182 166 183 set +C184 185 date >> $scriptlog 2>&1186
Note:
See TracChangeset
for help on using the changeset viewer.