OT: need script md5sum help
Todd and Margo Chester <[email protected]> Wed, 03 Oct 2007 19:29:37 -0700
| Newsgroups | gmane.comp.kde.k3b |
|---|---|
| Message-ID | <[email protected]> |
Hi All,
Please forgive this somewhat off topic post. I know
that the intellectual knowledge exist here and I have
had no luck elsewhere.
I have a script that creates an ISO and then burns
the iso to disk with cdrecord. When I am finished, I
take an MD5SUM of the original ISO and the raw cd in
the drive. They never match (I know the disk cut
correctly too).
Now, I know K3B does the same thing when cutting an ISO
to disk. What am I doing wrong?
Sum1=`md5sum MyNew.iso | awk '{print $1}'`
Sum2=`md5sum /dev/scd0 | awk '{print $1}'`
if [ "$Sum1" != "$Sum2" ]; then
echo "CRITICAL ERROR: Check sums do not match. Bummer..."
else
echo 'SUCCESS!'
fi
Many thanks,
-T
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/