Changeset 8682 for trunk/MagicSoft/Mars/datacenter/scripts/movingrawfiles
- Timestamp:
- 08/20/07 13:03:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/movingrawfiles
r8410 r8682 19 19 # 20 20 # 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> 21 22 # 22 23 # Copyright: MAGIC Software Development, 2000-2007 … … 28 29 # /magic/datacenter/fromtape/rawdata to the structure 29 30 # /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 30 34 # 31 35 … … 48 52 # output for chmod with -v or -c (only changes) 49 53 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" 51 56 # 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 then57 #dirs=`ls /magic/datacenter/fromlapalma/RAWchk/*/*.finished | sed -e 's/RAWchk/RAW/g' | cut -d/ -f1-6` 58 #if [ ! "$dirs" == "" ] 59 #then 55 60 # change permission for this directories 56 ssh lapalma@apollochmod -R g+w $dirs >> $scriptlog 2>&161 #ssh lapalma@dc09 chmod -R g+w $dirs >> $scriptlog 2>&1 57 62 # move directories to the tapedirectory 58 mv -v $dirs /magic/datacenter/fromtape/rawdata/ >> $scriptlog 2>&159 fi63 #mv -v $dirs /magic/datacenter/fromtape/rawdata/ >> $scriptlog 2>&1 64 #fi 60 65 61 66 printprocesslog "INFO moving directories from muxdata to rawdata" … … 80 85 printprocesslog "INFO moving rawfiles to $datapath/rawfiles" 81 86 for rawfile in $rawfiles 82 do 87 do 83 88 # workaround for rawfiles with wrong timing 84 89 # newrawfile=`echo $rawfile | sed -e 's/center\/fromtape\/rawdata/\/rawfiles-wrong-timing/g' -e 's/_/\//1' -e 's/_/\//1'` … … 86 91 newdir=`dirname $newrawfile` 87 92 makedir $newdir >> $scriptlog 2>&1 88 93 89 94 mv -v $rawfile $newrawfile >> $scriptlog 2>&1 90 95 done
Note:
See TracChangeset
for help on using the changeset viewer.