Need help with error correction.

Michael Meissner meissner at osf.org
Thu Feb 7 08:36:23 AEST 1991


In article <1991Feb6.142829.20725 at dg-rtp.dg.com>
hunt at dg-rtp.rtp.dg.com (Greg Hunt) writes:

| When I've had file transmission problems, I've used sum(1) to produce
| a checksum of the file on both the sending side machine and the
| receiving side machine and compared the results.  If they weren't the
| same, then I knew that something got corrupted in the transmission and
| I got the file again.
| 
| If the systems you're working with have sum(1) that might be an easy
| thing to use.  Also, sum(1) will work for any sort of file, it doesn't
| just have to be text (which is the only thing diff(1) can look at).

The only hitch is that sum(1) produces different results on System V
based systems and Berkeley based systems.  I think sum -r on System V
gives the BSD behavior.

--
Michael Meissner	email: meissner at osf.org		phone: 617-621-8861
Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142

Considering the flames and intolerance, shouldn't USENET be spelled ABUSENET?



More information about the Comp.unix.questions mailing list