- Timestamp:
- 08/25/06 22:09:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/checkfilesforsequenceavail
r7938 r7944 35 35 # 36 36 37 source `dirname $0`/sourcefile 38 printprocesslog "INFO starting $0" 37 39 program=checkfilesavail 38 source `dirname $0`/sourcefile39 40 40 column=fAllFilesAvail 41 41 42 lockfile=$lockpath/lock-$program.txt 43 44 scriptlogpath=$runlogpath/$program 45 makedir $scriptlogpath 46 scriptlog=$scriptlogpath/$program-$datetime.log 47 42 scriptlog=$runlogpath/$program-$datetime.log 48 43 date >> $scriptlog 2>&1 49 44 50 45 # check if script is already running 46 lockfile=$lockpath/lock-$program.txt 51 47 checklock >> $scriptlog 2>&1 52 48 … … 69 65 do 70 66 echo "checking files for sequence $sequence..." >> $scriptlog 2>&1 67 printprocesslog "INFO checking files for sequence $sequence" 71 68 no=`printf %08d $sequence | cut -c 0-4` 72 69 no2=`printf %08d $sequence` … … 84 81 85 82 case $check1 in 86 1) echo " check1=$check1 -> everything ok -> setting status..." >> $scriptlog 2>&1 ;; 83 1) echo " check1=$check1 -> everything ok -> setting status..." >> $scriptlog 2>&1 84 printprocesslog "INFO files available for sequence $sequence" 85 ;; 87 86 2) echo " check1=$check1 -> files not yet available -> continue..." >> $scriptlog 2>&1 87 printprocesslog "INFO files not yet available for sequence $sequence" 88 88 check="no" 89 89 ;; 90 90 0) echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1 91 printprocesslog "WARN connection to DB failed" 91 92 check="no" 92 93 ;; 93 *) echo "check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 94 *) echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 95 printprocesslog "ERROR $program.C failed" 94 96 com=$Ffilesavail 95 97 check=$check1
Note:
See TracChangeset
for help on using the changeset viewer.