Changeset 9114 for trunk/MagicSoft/Mars/datacenter/scripts/checkmd5sum
- Timestamp:
- 08/12/08 10:20:17 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/checkmd5sum
r8886 r9114 62 62 63 63 date | tee ${checkpath}/tape_${id}.md5.lapalma | tee ${checkpath}/tape_${id}.md5.wue 64 muxslog=`grep muxdata/20[01][0-9].*/20[01][0-9].*.raw $file | wc -l` 64 65 65 66 # read the tapecont file line by line … … 67 68 do 68 69 muxchk=`echo $line | cut -d/ -f1` 69 type=`echo $line | cut -d_ -f7 | cut -c0-5`70 type=`echo $line | sed -e 's/.*20[01][0-9]\{5\}_.*\(.raw\)/\1/' | cut -c 0-4` 70 71 # only check muxdata rawfiles, not cc-, caco- or drivelog-files 71 if [ "$muxchk" = "muxdata" ] && [ "$type" = " E.raw" ]72 if [ "$muxchk" = "muxdata" ] && [ "$type" = ".raw" ] 72 73 then 73 74 sum=($line) … … 103 104 echo "Wrote checksums to ${checkpath}/tape_${id}.md5.lapalma and ${checkpath}/tape_${id}.md5.wue. Comparing now." 104 105 105 106 106 # check for differences in the checksums 107 107 output=`diff ${checkpath}/tape_${id}.md5.lapalma ${checkpath}/tape_${id}.md5.wue` … … 109 109 if [ "$output" = "" ] 110 110 then 111 echo "All checksums are ok! Launching movingrawfiles now."# to be included 111 echo "All checksums are identical!" 112 muxschk=`grep muxdata/20[01][0-9].*/20[01][0-9].*.raw ${checkpath}/tape_${id}.md5.wue | wc -l` 113 if [ $muxslog == $muxschk ] 114 then 115 echo "Number of checked files matches. Launching movingrawfiles now. (to be included)" | tee -a ${checkpath}/tape_${id}.md5.lapalma | tee -a ${checkpath}/tape_${id}.md5.wue 116 else 117 echo "Number of checked files doesn't match number of extracted files. Something went wrong..." | tee -a ${checkpath}/tape_${id}.md5.lapalma | tee -a ${checkpath}/tape_${id}.md5.wue 118 fi 112 119 else 113 120 echo -e "The files are not identical! diff found the following differences:\n$output"
Note:
See TracChangeset
for help on using the changeset viewer.