Files
sics/site_ansto/instrument/util/dmc2280/ckmd5.sh
Ferdi Franceschini 0749b0effa Merging release 2.0 branch with CVS trunk
r2601 | ffr | 2008-05-30 10:26:57 +1000 (Fri, 30 May 2008) | 2 lines
2012-11-15 13:38:17 +11:00

14 lines
353 B
Bash
Executable File

#!/bin/sh
# Strip all horizontal and vertical whitespace from the galil controller programs
# and compare md5 sums.
instrument=${HOSTNAME#ics1-}
i=1
for f in controller*.md5
do
name=`basename $f .md5`
echo -n "$name "
./getDMCprog.tcl -host mc${i}-$instrument -port pmc${i}-$instrument |tr -d '[:space:]'|md5sum -c $f 2> /dev/null
let i++
done