Changeset 7910 for trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
- Timestamp:
- 08/22/06 15:08:12 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/MagicSoft/Mars/datacenter/scripts/sourcefile ¶
r7909 r7910 113 113 } 114 114 115 # function to do continue in a loop or exit the program depending on what is needed 116 function contex() 117 { 118 echo "" 119 if [ "$singleprocess" = "yes" ] 120 then 121 continue 122 else 123 exit 124 fi 125 } 126 115 127 # function to make sure that a directory is made 116 128 function makedir() … … 133 145 checklock0=$? 134 146 case $checklock0 in 135 0) echo "checklock0=$checklock0 -> continue " ;; 136 1) echo "checklock0=$checklock0 -> file $lockfile exists " 137 echo "-> $@ $program is running -> exit" 147 0) echo " checklock0=$checklock0 -> continue " ;; 148 1) echo " checklock0=$checklock0 -> file $lockfile exists -> exit" 138 149 date 139 exit;;140 *) echo " checklock0=$checklock0 -> something went completely wrong" ;;150 contex;; 151 *) echo " checklock0=$checklock0 -> something went completely wrong" ;; 141 152 esac 142 153 } … … 158 169 159 170 case $check0 in 160 1) echo " check0=$check0 -> everything ok, got todo list -> run $program";;161 *) echo " check0=$check0 -> ERROR -> could not get todo list -> exit"171 1) echo " check0=$check0 -> everything ok, got todo list -> run $program";; 172 *) echo " check0=$check0 -> ERROR -> could not get todo list -> exit" 162 173 finish ;; 163 174 esac … … 194 205 resetstatusvalues 195 206 case $@ in 196 start) echo "s tart"207 start) echo "setstatus start" 197 208 starttime="Now()" 198 209 ;; 199 stop) echo "s top"210 stop) echo "setstatus stop" 200 211 case $check in 201 212 ok) echo " ok" … … 230 241 checkstatus=`root -q -b $macrospath/setstatus.C+\("\"$var2\""\,"\"$table\""\,"\"$column\""\,"\"$statustime\""\,"\"$returncode\""\,"\"$failedcode\""\,"\"$failedcodeadd\""\,"\"$starttime\""\,"\"$failedtime\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'` 231 242 case $checkstatus in 232 1) echo " checkstatus=$checkstatus -> everything ok, status has been set";;233 *) echo " checkstatus=$checkstatus -> ERROR -> step could not be set -> exit"243 1) echo " checkstatus=$checkstatus -> everything ok, status has been set";; 244 *) echo " checkstatus=$checkstatus -> ERROR -> step could not be set -> exit" 234 245 finish ;; 235 246 esac … … 262 273 # echo " influences: $influences" 263 274 # echo " primary: $primary" 264 }265 266 function contex()267 {268 echo ""269 if [ "$singleprocess" = "yes" ]270 then271 continue272 else273 exit274 fi275 275 } 276 276
Note:
See TracChangeset
for help on using the changeset viewer.