<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Wed, 29 Aug 1984 10:31:11 EDT (Wednesday)
From   : Robert Bloom DRSTE-TOI 3775 <rbloom@apg-1.ARPA>
Subject: UC crc questions

(This message was sent before but was garbled both by wordstar, the 
mailer, and my own fuzzy thinking.  It was re-written and I'll try
again.)

I was working with the various modes of the crc mode of uc (ver 1.2)
trying to determine the proper modes to use to check uploaded files
on our local unix machine.

However, I got rather confused because the character counts and crcks
did not match and the relationship is not clear.  This is what I did:

I took two small files, B.COM (a binary file) and a A.TXT (a straight 
7-bit ascii file) and uploaded with (to) umodem and uc from MEX10 
using both the -t (text) and -b (binary) options.  Then I ran uc's -c 
and -C crc checks.  Very few numbers matched.

file       upload            ls -l            uc crc's
name       method          char count  -c (text)   -C (binary)

A.TXT      append into ed     390      C6700080    6C4AFFFFF
A.TXT      umodem -rb         512      ADFB00080   C67FFFFF 
A.TXT      umodem -rt         390      C6700080    6C4AFFFFF
A.TXT      uc -rb             512      ADFB00080   C67FFFFF 
A.TXT      uc -rt             390      C6700080    6C4AFFFFF
                                                            
B.COM      append into ed     446      976F00080   E05FFFFFF
B.COM      umodem -rb        1920      BC1400080   2540FFFFF
B.COM      umodem -rt         620      EA6200080   6E01FFFFF
B.COM      uc -rb            1920      BC1400080   2540FFFFF
B.COM      uc -rt            1543      7B0100080   A441FFFFF

The A.TXT crc from CRCK44 was 0C67, BYTEFREQ reported 512 characters
The B.TXT crc from CRCK44 was 2540, BYTEFREQ reported 1920 characters

Leading zeros are apparently dropped in the uc crc output.  I
would like to understand why the various numbers don't match, which
method should I use for text and binary uploads, and how they 
should be checked with crc.

-bob bloom
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>