Changeset 7477 for trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
- Timestamp:
- 02/03/06 16:49:10 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
r7474 r7477 63 63 } 64 64 65 function finish() 66 { 67 rm -v $todofile 68 rm -v $lockfile 69 date 70 exit 71 } 72 73 function getdolist() 74 { 75 datetime=`date +%F-%H-%M-%S` 76 year=`date +%Y` 77 date=NULL 78 79 getstatuslogpath=$logpath/getstatus/$program/$year 80 getstatuslog=$getstatuslogpath/getstatus-$table-$column-$datetime.log 81 makedir $getstatuslogpath 82 83 # get todo list 84 echo "getting todo list..." 85 check0=`root -q -b $macrospath/getdolist.C+\("\"$table\""\,"\"$column\""\,"\"$date\""\,"\"$listpath\""\) | tee $getstatus | grep int | sed -e 's/(int)//'` 86 87 case $check0 in 88 1) echo "check0=$check0 -> everything ok, got todo list -> run $program";; 89 *) echo "check0=$check0 -> ERROR -> could not get todo list -> exit" 90 finish ;; 91 esac 92 93 } 94 65 95 function resetstatusvalues() 66 96 { … … 118 148 case $checkstatus in 119 149 1) echo "checkstatus=$checkstatus -> everything ok, status has been set";; 120 *) echo "checkstatus=$checkstatus -> ERROR -> step could not be set";; 150 *) echo "checkstatus=$checkstatus -> ERROR -> step could not be set -> exit" 151 finish ;; 121 152 esac 122 153 }
Note:
See TracChangeset
for help on using the changeset viewer.