Ignore:
Timestamp:
01/10/06 22:12:58 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7426 r7460  
    2020#   Author(s): Daniela Dorner  08/2004 <mailto:dorner@astro.uni-wuerzburg.de>
    2121#
    22 #   Copyright: MAGIC Software Development, 2000-2004
     22#   Copyright: MAGIC Software Development, 2000-2006
    2323#
    2424#
    2525# ========================================================================
     26#
     27# This script is moving the subsystemfiles from the directory
     28# /magic/datacenter/fromtape to the structure
     29# /magic/subsystemdata/subsystem/YYYY/MM/DD
     30#
    2631
    2732umask 0002
    2833
     34# change permission for files
     35# perhaps needed as the tapes are read by the user tape
    2936ssh tape@dc07 chmod -R g+w /magic/datacenter/fromtape/{ccdata,cacodata,amc,daqlog}/*
    3037
     38# find subsystem files
    3139subsysfiles=`find /magic/datacenter/fromtape/ccdata/ -name '*.*'`
    3240subsysfiles=("${subsysfiles[@]}" `find /magic/datacenter/fromtape/daqlog/ -name '*.*'`)
     
    3442subsysfiles=("${subsysfiles[@]}" `find /magic/datacenter/fromtape/amc/ -name '*.*'`)
    3543
     44# moving subsystem files
    3645for subsysfile in ${subsysfiles[@]}
    3746do
    38 #  echo "file: "$subsysfile
    3947  newsubsysfile=`echo $subsysfile | sed -e 's/datacenter\/fromtape/subsystemdata/g' -e 's/daqlog/daq__/g' -e 's/ccdata/cc/g' -e 's/cacodata/caco/g' -e 's/_/\//1' -e 's/_/\//1' -e 's/\/\///g'`
    40 #  echo "new file: "$newsubsysfile
    4148  newdir=`dirname $newsubsysfile`
    42 #  echo "newdir: "$newdir
    4349  if [ ! -d $newdir ]
    4450  then
     
    4854
    4955  mv -v $subsysfile $newsubsysfile
    50 
    5156done
    5257
Note: See TracChangeset for help on using the changeset viewer.