Ignore:
Timestamp:
08/25/06 22:09:49 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/checkfilesforsequenceavail

    r7938 r7944  
    3535#
    3636
     37source `dirname $0`/sourcefile
     38printprocesslog "INFO starting $0"
    3739program=checkfilesavail
    38 source `dirname $0`/sourcefile
    39 
    4040column=fAllFilesAvail
    4141
    42 lockfile=$lockpath/lock-$program.txt
    43 
    44 scriptlogpath=$runlogpath/$program
    45 makedir $scriptlogpath
    46 scriptlog=$scriptlogpath/$program-$datetime.log
    47 
     42scriptlog=$runlogpath/$program-$datetime.log
    4843date >> $scriptlog 2>&1
    4944
    5045# check if script is already running
     46lockfile=$lockpath/lock-$program.txt
    5147checklock  >> $scriptlog 2>&1
    5248
     
    6965do
    7066   echo "checking files for sequence $sequence..." >> $scriptlog 2>&1
     67   printprocesslog "INFO checking files for sequence $sequence"
    7168   no=`printf %08d $sequence | cut -c 0-4`
    7269   no2=`printf %08d $sequence`
     
    8481
    8582   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           ;;
    8786      2)   echo " check1=$check1 -> files not yet available -> continue..." >> $scriptlog 2>&1
     87           printprocesslog "INFO files not yet available for sequence $sequence"
    8888           check="no"
    8989           ;;
    9090      0)   echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1
     91           printprocesslog "WARN connection to DB failed"
    9192           check="no"
    9293           ;;
    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"
    9496           com=$Ffilesavail
    9597           check=$check1
Note: See TracChangeset for help on using the changeset viewer.