Changeset 7476 for trunk/MagicSoft/Mars/datacenter/scripts/correcttime
- Timestamp:
- 02/03/06 16:42:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/correcttime
r7471 r7476 44 44 table=RunProcessStatus 45 45 column=fTimingCorrection 46 date=NULL47 datetime=`date +%F_%T`48 year=`date +%Y`49 46 50 getstatuslogpath=$logpath/getstatus/$program/$year 51 getstatuslog=$getstatuslogpath/getstatus-$table-$column-$datetime.log 52 makedir $getstatuslogpath >> $scriptlog 2>&1 47 todofile=$listpath/ToDo-$table-$column.txt 48 lockfile=$lockpath/lock-$program.txt 53 49 54 if [ -e $ listpath/ToDo-$table-$column.txt]50 if [ -e $todofile ] 55 51 then 56 52 echo "$program is already running -> exit" … … 60 56 cd $mars 61 57 62 echo "getting list..." 63 check0=`root -q -b $macrospath/getdolist.C+\("\"$table\""\,"\"$column\""\,"\"$date\""\,"\"$listpath\""\) | tee $getstatuslog | grep int | sed -e 's/(int)//'` 64 65 case $check0 in 66 1) echo "check0=$check0 -> everything ok -> run $program";; 67 *) echo "check0=$check0 -> ERROR -> step has to be repeated";; 68 esac 58 # get todo list 59 getdolist >> $scriptlog 2>&1 69 60 70 61 # retrieving runs from todo file … … 73 64 then 74 65 echo "nothing to do -> exit" 75 rm -v $listpath/ToDo-$table-$column.txt 76 exit 66 finish >> $scriptlog 2>&1 77 67 fi 78 68 … … 114 104 done 115 105 116 rm -v $listpath/ToDo-$table-$column.txt 106 finish >> $scriptlog 2>&1 117 107
Note:
See TracChangeset
for help on using the changeset viewer.