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/linkmc

    r7938 r7944  
    4242#
    4343
     44source `dirname $0`/sourcefile
     45printprocesslog "INFO starting $0"
    4446program=linkmc
    45 source `dirname $0`/sourcefile
    4647
    4748set -C
    4849
    49 scriptlogpath=$runlogpath/$program
    50 makedir $scriptlogpath
    51 scriptlog=$scriptlogpath/linkmc`date +%F`.log
    52 
     50scriptlog=$runlogpath/$progam-`date +%F`.log
    5351date >> $scriptlog 2>&1
    5452
    5553# check if script is already running
    56 lockfile=$lockpath/lock-mclinks.txt
     54lockfile=$lockpath/lock-$program.txt
    5755checklock  >> $scriptlog 2>&1
    5856
     
    6765then
    6866   echo "file $next not found -> no start-runno -> exit" >> $scriptlog 2>&1
    69    rm -v $lockfile >> $scriptlog 2>&1
    70    exit
     67   printprocesslog "ERROR file $next (last runno) not found"
     68   finish >> $scriptlog 2>&1
    7169fi
    7270
     
    116114camfiles=`find $mccampath -type f | grep -v Cal_and_Ped`
    117115
     116printprocesslog "INFO linking new camerafiles starting with runno $runno"
    118117for camfile in ${camfiles[@]}
    119118do
     
    123122      continue
    124123   fi
     124   printprocesslog "INFO linking $file"
    125125   file=`basename $camfile` #filename
    126126   no=`printf %08d $runno | cut -c 0-5` #first 5 digits of a 8digit runno -> for path
     
    177177done
    178178
     179printprocesslog "INFO linking cal and ped files"
    179180echo "linking cal and ped file" >> $scriptlog 2>&1
    180181#get files
     
    188189then
    189190   "too many files in the directory $mccampath/Cal_and_Ped -> exit" >> $scriptlog 2>&1
    190    rm -v $lockfile >> $scriptlog 2>&1
    191    exit
     191   printprocesslog "ERROR too many ped and cal files found in $mccampath/Cal_and_Ped"
     192   finish >> $scriptlog 2>&1
    192193fi
    193194
     
    225226done
    226227
    227 rm -v $lockfile >> $scriptlog 2>&1
    228 
    229 set +C
    230 
    231 date  >> $scriptlog 2>&1
    232 
     228finish >> $scriptlog 2>&1
     229
Note: See TracChangeset for help on using the changeset viewer.