From owner-freebsd-questions@FreeBSD.ORG Sat Dec 6 13:52:51 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A3A1E16A4CE for ; Sat, 6 Dec 2003 13:52:51 -0800 (PST) Received: from www6.web2010.com (www6.web2010.com [216.157.5.254]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FBAB43F3F for ; Sat, 6 Dec 2003 13:52:50 -0800 (PST) (envelope-from MLandman@face2interface.com) Received: from delliver.face2interface.com (dialup-wash-129-203.thebiz.net [64.30.129.203] (may be forged)) by www6.web2010.com (8.12.10/8.9.0) with ESMTP id hB6LqgnX007615; Sat, 6 Dec 2003 16:52:43 -0500 (EST) Message-Id: <6.0.0.22.0.20031206164811.042faeb0@pop.face2interface.com> X-Sender: face@pop.face2interface.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Sat, 06 Dec 2003 16:52:42 -0500 To: Chris Pressey From: Marty Landman In-Reply-To: <20031206114843.6a37709e.cpressey@catseye.mine.nu> References: <6.0.0.22.0.20031206095611.01f550a0@pop.face2interface.com> <20031206114843.6a37709e.cpressey@catseye.mine.nu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed cc: FreeBSD-Questions@freebsd.org Subject: Re: md5 newbie question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Dec 2003 21:52:51 -0000 At 02:48 PM 12/6/2003, Chris Pressey wrote: >The "-s 466c63bb71b710d20a5c353df8c1a19c" part of your command is >requesting an md5 hash of the literal string of characters >"466c63bb71b710d20a5c353df8c1a19c". > >That's almost certainly not what you want, and will only serve to confuse. Ah, but you've now unconfused me. > Try running just this instead: > > md5 /tmp/httpd-2.0.48.tar.gz What I want to do is avoid having to verify a match by eye. Here's what I just tried: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ FreeB md5 httpd-2.0.48.tar.gz > thing1 ; echo 466c63bb71b710d20a5c353df8c1a19c > thing2 ; echo difference is `diff thing1 thing2` ; rm thing1 thing2 difference is 1c1 < MD5 (httpd-2.0.48.tar.gz) = 466c63bb71b710d20a5c353df8c1a19c --- > 466c63bb71b710d20a5c353df8c1a19c FreeB md5 httpd-2.0.48.tar.gz > thing1 ; echo 466c63bb71b710d20a5c353df8c1a19c > thing2 FreeB more thing1 MD5 (httpd-2.0.48.tar.gz) = 466c63bb71b710d20a5c353df8c1a19c FreeB ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Seems the problem here is that the md5 cmd's output is not simply the result string but a description of the cmd together with the result. If I need to do much of this guess a little pgm's called for. Marty Landman Face 2 Interface Inc 845-679-9387 Sign On Required: Web membership software for your site Make a Website: http://face2interface.com/Home/Demo.shtml