Changeset 7467 for trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
- Timestamp:
- 01/31/06 14:53:08 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
r7465 r7467 61 61 } 62 62 63 function resetstatusvalues() 64 { 65 statustime=NULL 66 starttime=NULL 67 failedcode=NULL 68 failedcomment=NULL 69 failedtime=NULL 70 } 71 72 function printstatusvalues() 73 { 74 echo "the current values are:" 75 echo " statustime=$statustime" 76 echo " starttime=$starttime" 77 echo " failedcode=$failedcode" 78 echo " failedcomment=$failedcomment" 79 echo " failedtime=$failedtime" 80 echo "-- check: -$check-" 81 ech 82 echo "" 83 } 84 63 85 function setstatus() 64 86 { 87 # set status values 88 resetstatusvalues 89 case $@ in 90 start) echo "start" 91 starttime="Now()" 92 ;; 93 stop) echo "stop" 94 case $check in 95 0) echo " ok" 96 statustime="Now()" 97 ;; 98 *) echo " failed" 99 starttime=noreset 100 failedcode=$check 101 failedcomment=$com 102 failedtime="Now()" 103 ;; 104 esac 105 ;; 106 *) echo "error -> exit" 107 exit 108 ;; 109 esac 110 check= 111 112 # set status 65 113 setstatuslogpath=$logpath/setstatus/$program/$var1 66 114 makedir $setstatuslogpath >> $scriptlog 2>&1 67 setstatuslog=$setstatuslogpath/setstatus-$ program-$var2.log68 checkstatus=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"$statustime\""\,"\"$failed \""\,"\"$starttime\""\,"\"$failedtime\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'`115 setstatuslog=$setstatuslogpath/setstatus-$@-$program-$var2.log 116 checkstatus=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"$statustime\""\,"\"$failedcode\""\,"\"$failedcomment\""\,"\"$starttime\""\,"\"$failedtime\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'` 69 117 case $checkstatus in 70 118 1) echo "checkstatus=$checkstatus -> everything ok, status has been set" >> $scriptlog 2>&1;; … … 72 120 esac 73 121 } 122 123 124
Note:
See TracChangeset
for help on using the changeset viewer.