Changeset 8410
- Timestamp:
- 04/17/07 16:05:32 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8409 r8410 30 30 * datacenter/scripts/runcallisto: 31 31 - added condition for the linking of the .rc-file for muxdata 32 * datacenter/scripts/makecallistolinks: 33 - commented reason2 out 32 34 33 35 -
trunk/MagicSoft/Mars/datacenter/scripts/filesondisk
r7955 r8410 130 130 echo "missing cacofile for run "$runno >> $scriptlog 2>&1 131 131 echo "-> finding cacofile" >> $scriptlog 2>&1 132 ccfile=`find $subsystempath/cc/ -name [2][0][0-2][0-9][0,1][0-9][0-3][0-9]_*${runno}_[P,D,C,S]_*_S.rep ` 2>/dev/null132 ccfile=`find $subsystempath/cc/ -name [2][0][0-2][0-9][0,1][0-9][0-3][0-9]_*${runno}_[P,D,C,S]_*_S.rep -and ! -name [2][0][0-2][0-9][0,1][0-9][0-3][0-9]_*[1-9]${runno}_[P,D,C,S]_*_S.rep` 2>/dev/null 133 133 echo " ccfile: "$ccfile >> $scriptlog 2>&1 134 134 if [ "$ccfile" = "" ] -
trunk/MagicSoft/Mars/datacenter/scripts/makecallistolinks
r8382 r8410 54 54 #.* == hi or lo 55 55 reason1="Pulse is too much to the right, out of .*-gain range" 56 reason2="No entry for resource id '2[45]' found in"56 #reason2="No entry for resource id '2[45]' found in" 57 57 echo "reason1: "$reason1 >> $scriptlog 2>&1 58 echo "reason2: "$reason2 >> $scriptlog 2>&158 #echo "reason2: "$reason2 >> $scriptlog 2>&1 59 59 60 60 # find files containing reason … … 72 72 for file in $files 73 73 do 74 pulse=`cat $file | grep "$reason1\|$reason2"` 74 # pulse=`cat $file | grep "$reason1\|$reason2"` 75 pulse=`cat $file | grep "$reason1"` 75 76 sequ=`echo $file | cut -d/ -f6` 76 77 path=`dirname $file` -
trunk/MagicSoft/Mars/datacenter/scripts/movingrawfiles
r8331 r8410 20 20 # Author(s): Daniela Dorner 08/2004 <mailto:dorner@astro.uni-wuerzburg.de> 21 21 # 22 # Copyright: MAGIC Software Development, 2000-200 622 # Copyright: MAGIC Software Development, 2000-2007 23 23 # 24 24 # … … 49 49 50 50 printprocesslog "INFO moving directories from fromlapalma to fromtape" 51 # find directories which have to be copied51 # find directories which have to be copied 52 52 dirs=`ls /magic/datacenter/fromlapalma/RAWchk/*/*.finished | sed -e 's/RAWchk/RAW/g' | cut -d/ -f1-6` 53 53 if [ ! "$dirs" == "" ] 54 54 then 55 # change permission for this dir ctories55 # change permission for this directories 56 56 ssh lapalma@apollo chmod -R g+w $dirs >> $scriptlog 2>&1 57 57 # move directories to the tapedirectory 58 mv -v $dirs /magic/datacenter/fromtape/rawdata/ >> $scriptlog 2>&1 58 mv -v $dirs /magic/datacenter/fromtape/rawdata/ >> $scriptlog 2>&1 59 fi 60 61 printprocesslog "INFO moving directories from muxdata to rawdata" 62 # find directories which have to be copied 63 days=`find /magic/datacenter/fromtape/muxdata/* -type d` 64 if [ ! "$days" == "" ] 65 then 66 # move directories to the tapedirectory 67 mv -v $days /magic/datacenter/fromtape/rawdata/ >> $scriptlog 2>&1 59 68 fi 60 69 … … 65 74 if [ "$rawfiles" == "" ] 66 75 then 67 echo "no files to move -> exit" >> $scriptlog 2>&1 68 finish >> $scriptlog 2>&1 76 echo "no files to move -> exit" >> $scriptlog 2>&1 77 finish >> $scriptlog 2>&1 69 78 fi 70 79 71 printprocesslog "INFO moving movingrawfiles to $datapath/rawfiles"80 printprocesslog "INFO moving rawfiles to $datapath/rawfiles" 72 81 for rawfile in $rawfiles 73 82 do 74 83 # workaround for rawfiles with wrong timing 75 # newrawfile=`echo $rawfile | sed -e 's/center\/fromtape\/rawdata/\/rawfiles-wrong-timing/g' -e 's/_/\//1' -e 's/_/\//1'`84 # newrawfile=`echo $rawfile | sed -e 's/center\/fromtape\/rawdata/\/rawfiles-wrong-timing/g' -e 's/_/\//1' -e 's/_/\//1'` 76 85 newrawfile=`echo $rawfile | sed -e 's/center\/fromtape\/rawdata/\/rawfiles/g' -e 's/_/\//1' -e 's/_/\//1'` 77 86 newdir=`dirname $newrawfile` 78 makedir $newdir >> $scriptlog 2>&1 87 makedir $newdir >> $scriptlog 2>&1 79 88 80 mv -v $rawfile $newrawfile >> $scriptlog 2>&1 89 mv -v $rawfile $newrawfile >> $scriptlog 2>&1 81 90 done 82 91 83 rmdir -v /magic/datacenter/fromtape/rawdata/* >> $scriptlog 2>&1 92 rmdir -v /magic/datacenter/fromtape/rawdata/* >> $scriptlog 2>&1 84 93 85 94 printprocesslog "INFO launching filesondisk" 86 echo "launching filesondisk" >> $scriptlog 2>&1 95 echo "launching filesondisk" >> $scriptlog 2>&1 87 96 $scriptspath/filesondisk& 88 97 -
trunk/MagicSoft/Mars/datacenter/scripts/runcallisto
r8381 r8410 70 70 # define callisto.rc files 71 71 callistorcnew=$setuppath/$program/callisto.rc 72 callistorcmux=$setuppath/$program/callisto_mux.rc 72 73 # find callisto.rc file 73 74 if [ -e $outpath/callisto.rc ] … … 77 78 else 78 79 echo "no $program.rc found in $outpath -> making link " >> $scriptlog 2>&1 79 ln -vs $callistorcnew $outpath/callisto.rc >> $scriptlog 2>&1 80 if [ $sequence -gt 200000 ] 81 then 82 ln -vs $callistorcmux $outpath/callisto.rc >> $scriptlog 2>&1 83 else 84 ln -vs $callistorcnew $outpath/callisto.rc >> $scriptlog 2>&1 85 fi 80 86 callistorcseq=$outpath/callisto.rc 81 87 fi
Note:
See TracChangeset
for help on using the changeset viewer.