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

    r7938 r7944  
    3131
    3232source `dirname $0`/sourcefile
     33printprocesslog "INFO starting $0"
     34program=movingrawfiles
    3335
    3436set -C
     37umask 0002
    3538
    36 program=movingrawfiles
    37 
    38 lockfile=$lockpath/lock-$program.txt
    39 
    40 scriptlogpath=$runlogpath/$program
    41 makedir $scriptlogpath
    42 scriptlog=$scriptlogpath/$program-$datetime.log
    43 
     39scriptlog=$runlogpath/$program-$datetime.log
    4440date >> $scriptlog 2>&1
    4541
    4642# check if script is already running
     43lockfile=$lockpath/lock-$program.txt
    4744checklock  >> $scriptlog 2>&1
    48 
    49 
    50 umask 0002
    5145
    5246# change permission for files
     
    5448# output for chmod with -v or -c (only changes)
    5549
     50printprocesslog "INFO moving directories from fromlapalma to fromtape"
    5651#find directories, which have to be copied
    5752dirs=`ls /magic/datacenter/fromlapalma/RAWchk/*/*.finished | sed -e 's/RAWchk/RAW/g' | cut -d/ -f1-6`
     
    7469fi
    7570
     71printprocesslog "INFO moving moving rawfiles to $datapath/rawfiles"
    7672for rawfile in $rawfiles
    7773do
     
    8783rmdir -v /magic/datacenter/fromtape/rawdata/* >> $scriptlog 2>&1
    8884
     85printprocesslog "INFO launching filesondisk"
    8986echo "launching filesondisk" >> $scriptlog 2>&1
    9087$scriptspath/filesondisk&
Note: See TracChangeset for help on using the changeset viewer.