- Timestamp:
- 05/07/08 18:31:04 (17 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8885 r8886 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2008/05/07 Stefan Ruegamer 22 23 * datacenter/scripts/checkmd5sum 24 - implemented check of files from /magic and /data 25 26 * datacenter/scripts/checktransfer 27 - changed the search for temporary zipfiles to not search in hidden 28 directories 29 30 * datacenter/scripts/movingrawfiles2 31 - movingrawfiles to move raw files from /data/fromtape 32 33 * datacenter/scripts/runcallisto 34 - changed default callisto.rc to callisto_mux_new.rc 35 36 * datacenter/scripts/zipscript 37 - changed the script due to the fact that /magic/data/rawfiles is 38 now a link 39 - changed the find to not search in hidden directories 40 - added the -n option to ssh 41 42 * resources/calibration_spline.rc 43 - added calibration factors for periods 62-66 but these are not 44 newly calculated, simply pasted from previous periods! 45 46 20 47 21 48 2008/04/08 Thomas Bretz -
trunk/MagicSoft/Mars/datacenter/scripts/checkmd5sum
r8857 r8886 20 20 # Author(s): Stefan Ruegamer 05/2007 <mailto:snruegam@astro.uni-wuerzburg.de> 21 21 # 22 # Copyright: MAGIC Software Development, 2000-200 722 # Copyright: MAGIC Software Development, 2000-2008 23 23 # 24 24 # … … 74 74 75 75 # check if the file has been extracted from tape; if not, don't write anything to the logfiles (so they can still be compared) 76 if [ ! -f /magic/datacenter/fromtape/${sum[0]} ] 76 if [ ! -f /magic/datacenter/fromtape/${sum[0]} ] && [ ! -f /data/fromtape/${sum[0]} ] 77 77 then 78 78 echo "File ${sum[0]} does not exist." … … 83 83 echo "${sum[1]} ${sum[0]}" >> ${checkpath}/tape_${id}.md5.lapalma 84 84 85 ssh -nx phoenix nice -n 19 /opt/csw/bin/gmd5sum /magic/datacenter/fromtape/${sum[0]} | sed -e 's/\/magic\/datacenter\/fromtape\///' >> ${checkpath}/tape_${id}.md5.wue 86 #md5sum /magic/datacenter/fromtape/${sum[0]} | sed -e 's/\/magic\/datacenter\/fromtape\///' >> ${checkpath}/tape_${id}.md5.wue 85 if [ ! -f /magic/datacenter/fromtape/${sum[0]} ] 86 then 87 ssh -nx phoenix nice -n 19 /opt/csw/bin/gmd5sum /data/fromtape/${sum[0]} | sed -e 's/\/data\/fromtape\///' >> ${checkpath}/tape_${id}.md5.wue 88 else 89 ssh -nx phoenix nice -n 19 /opt/csw/bin/gmd5sum /magic/datacenter/fromtape/${sum[0]} | sed -e 's/\/magic\/datacenter\/fromtape\///' >> ${checkpath}/tape_${id}.md5.wue 90 #md5sum /magic/datacenter/fromtape/${sum[0]} | sed -e 's/\/magic\/datacenter\/fromtape\///' >> ${checkpath}/tape_${id}.md5.wue 91 fi 87 92 fi 88 93 done < $file -
trunk/MagicSoft/Mars/datacenter/scripts/checktransfer
r8482 r8886 64 64 65 65 #checking if there are temporary zipfiles 66 files=`find $datapath/rawfiles/ -name ".*\.raw\.??????"`66 files=`find $datapath/rawfiles/20[0-1][0-9]/ -name ".*\.raw\.??????"` 67 67 68 68 for file in ${files[@]} -
trunk/MagicSoft/Mars/datacenter/scripts/runcallisto
r8690 r8886 71 71 sequfile="$sequpath/$no/sequence$no2.txt" 72 72 73 # stage the needed files; to be removed as soon as the correct stub file size has been determined74 echo "staging files:" >> $scriptlog 2>&175 day=`grep Night $sequfile | cut -c 18-27 | sed -e "s/-/\//g"`76 runs=`grep ^Runs $sequfile | cut -d: -f2`77 i=078 79 for run in ${runs[@]}80 do81 files[i]=20*_0*${run}_[PCD]_*_E.raw.gz82 echo ${datapath}/rawfiles/${day}/${files[i]} >> $scriptlog 2>&183 let i++84 done85 86 ssh -nx phoenix "cd ${datapath}/rawfiles/${day}; /opt/SUNWsamfs/bin/stage ${files[@]}"87 88 89 73 # define callisto.rc files 90 74 callistorcnew=$setuppath/$program/callisto.rc 91 callistorcmux=$setuppath/$program/callisto_mux.rc 75 #callistorcmux=$setuppath/$program/callisto_mux.rc 76 callistorcmux=$setuppath/$program/callisto_mux_new.rc 92 77 # find callisto.rc file 93 78 if [ -e $outpath/callisto.rc ] … … 118 103 primvar=$no2 119 104 setstatus "start" >> $scriptlog 2>&1 105 106 # stage the needed files; to be removed as soon as the correct stub file size has been determined 107 echo "staging files:" >> $scriptlog 2>&1 108 day=`grep Night $sequfile | cut -c 18-27 | sed -e "s/-/\//g"` 109 runs=`grep ^Runs $sequfile | cut -d: -f2` 110 i=0 111 112 for run in ${runs[@]} 113 do 114 files[i]=20*_0*${run}_[PCD]_*_E.raw.gz 115 echo ${datapath}/rawfiles/${day}/${files[i]} >> $scriptlog 2>&1 116 let i++ 117 done 118 119 ssh -nx phoenix "cd ${datapath}/rawfiles/${day}; /opt/SUNWsamfs/bin/stage ${files[@]}" 120 120 121 121 122 echo "./callisto -b -q -v4 -f --log=$outpath/$program$no2.log --html=$outpath/$program$no2.html --out=$outpath --config=$callistorcseq $sequfile 2>> $scriptlog > /dev/null" >> $scriptlog 2>&1 -
trunk/MagicSoft/Mars/datacenter/scripts/zipscript
r8482 r8886 36 36 set -C 37 37 38 rawdatapath=$datapath/rawfiles 39 files=`find $ rawdatapath-type f -name '*.raw'`38 rawdatapath=$datapath/rawfiles/ 39 files=`find ${rawdatapath}20* -type f -name '*.raw'` 40 40 41 41 scriptlog=$runlogpath/$program-$datetime.log … … 83 83 fi 84 84 echo "zipping $file ..." >> $scriptlog 2>&1 85 if ssh -x phoenix nice -n 19 gzip -1f $file >> $scriptlog 2>&185 if ssh -xn phoenix nice -n 19 gzip -1f $file >> $scriptlog 2>&1 86 86 then 87 87 gzfile=$file".gz" -
trunk/MagicSoft/Mars/resources/calibration_spline.rc
r8745 r8886 59 59 60: 0.93 60 60 61: 0.93 61 62: 0.93 62 63: 0.93 63 64: 0.93 64 65: 0.93 65 66: 0.93
Note:
See TracChangeset
for help on using the changeset viewer.