Ignore:
Timestamp:
08/20/07 13:03:00 (17 years ago)
Author:
snruegam
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r8410 r8682  
    1919#
    2020#   Author(s): Daniela Dorner  08/2004 <mailto:dorner@astro.uni-wuerzburg.de>
     21#   Author(s): Stefan Ruegamer 02/2007 <mailto:snruegam@astro.uni-wuerzburg.de>
    2122#
    2223#   Copyright: MAGIC Software Development, 2000-2007
     
    2829# /magic/datacenter/fromtape/rawdata to the structure
    2930# /magic/data/rawfiles/YYYY/MM/DD
     31#
     32# As the data transfer is at the moment not working via .finished files,
     33# you have to use the script movingrawfiles_OK for moving these data
    3034#
    3135
     
    4852# output for chmod with -v or -c (only changes)
    4953
    50 printprocesslog "INFO moving directories from fromlapalma to fromtape"
     54# outdated, .finished files are no longer used
     55#printprocesslog "INFO moving directories from fromlapalma to fromtape"
    5156# find directories which have to be copied
    52 dirs=`ls /magic/datacenter/fromlapalma/RAWchk/*/*.finished | sed -e 's/RAWchk/RAW/g' | cut -d/ -f1-6`
    53 if [ ! "$dirs" == "" ]
    54 then
     57#dirs=`ls /magic/datacenter/fromlapalma/RAWchk/*/*.finished | sed -e 's/RAWchk/RAW/g' | cut -d/ -f1-6`
     58#if [ ! "$dirs" == "" ]
     59#then
    5560   # change permission for this directories
    56    ssh lapalma@apollo chmod -R g+w $dirs >> $scriptlog 2>&1
     61   #ssh lapalma@dc09 chmod -R g+w $dirs >> $scriptlog 2>&1
    5762   # move directories to the tapedirectory
    58    mv -v $dirs /magic/datacenter/fromtape/rawdata/ >> $scriptlog 2>&1
    59 fi
     63   #mv -v $dirs /magic/datacenter/fromtape/rawdata/ >> $scriptlog 2>&1
     64#fi
    6065
    6166printprocesslog "INFO moving directories from muxdata to rawdata"
     
    8085printprocesslog "INFO moving rawfiles to $datapath/rawfiles"
    8186for rawfile in $rawfiles
    82 do 
     87do
    8388# workaround for rawfiles with wrong timing
    8489#   newrawfile=`echo $rawfile | sed -e 's/center\/fromtape\/rawdata/\/rawfiles-wrong-timing/g' -e 's/_/\//1' -e 's/_/\//1'`
     
    8691   newdir=`dirname $newrawfile`
    8792   makedir $newdir >> $scriptlog 2>&1
    88 
     93   
    8994   mv -v $rawfile $newrawfile >> $scriptlog 2>&1
    9095done
Note: See TracChangeset for help on using the changeset viewer.