home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / misc / 17228 < prev    next >
Encoding:
Internet Message Format  |  1992-11-20  |  3.0 KB

  1. Path: sparky!uunet!portal!cup.portal.com!thad
  2. From: thad@cup.portal.com (Thad P Floryan)
  3. Newsgroups: comp.sys.amiga.misc
  4. Subject: Re: Unique ID of a File?
  5. Message-ID: <69943@cup.portal.com>
  6. Date: Fri, 20 Nov 92 23:11:38 PST
  7. Organization: The Portal System (TM)
  8. Distribution: world
  9. References:  <Paul_Wolodko.047j@tvbbs.wimsey.bc.ca>
  10. Lines: 74
  11.  
  12. In article <Paul_Wolodko.047j@tvbbs.wimsey.bc.ca>
  13. Paul_Wolodko@tvbbs.wimsey.bc.ca (Paul Wolodko) writes:
  14.  
  15. |          I'll make this short (not sweet but definitely short). I 
  16. |  am trying to find a way to compare two files, without two copies
  17. |  [...]
  18. |  original workbench files handy. It would be much "nicer" if I
  19. |  could somehow compute a file's ID, and compare just the IDs of
  20. |  workbench original and this file. Back to my original question,
  21. |  is there an algorithm that will do this for me, CRC, CheckSum?
  22.  
  23. Yes, the "vitals" program will do what you need; it computes the CRC, checksum,
  24. and other "vitals" about file(s).  I use it literally daily on all of:
  25.  
  26.     AmigaOS
  27.     A/UX 2.*
  28.     CTIX 6.*
  29.     HPUX 7.*
  30.     HPUX 8.*
  31.     HPUX 9.*
  32.     IRIX 4.0.*
  33.     MS/DOS 5.0
  34.     OpenVMS on Alpha-3000/APX
  35.     Solaris 2.*
  36.     SunOS 4.1.*
  37.     SVR2.*
  38.     SVR3.*
  39.     SVR4.*
  40.     VAX/VMS on VAX-11/7**
  41.  
  42. If the file(s) is(are) identical, "vitals" produces the same output for the
  43. file(s) on ALL the above-listed systems.  The "vitals" program is vital to
  44. assure the integrity of a file after transfer across hostile media and to
  45. assure it hasn't changed on disk.
  46.  
  47. The copy I use on my Amigas is:
  48.  
  49.     CLI2> ls -l src:vitals
  50.     ----ar--- 89-09-19 00:26:41    5     2499 getopt.c
  51.     ----ar--- 90-04-08 03:54:03    2      808 getopt.o
  52.     ----ar--- 90-04-08 03:51:47    1      144 Makefile
  53.     ----ar--- 90-04-08 03:36:43    1       99 Makefile.3B1
  54.     ----ar--- 90-04-08 03:36:43    1      134 Makefile.orig
  55.     ----ar--- 90-04-08 03:36:44    2      668 POSTER
  56.     ----ar-e- 90-04-08 03:54:09   16     8076 vitals
  57.     ----ar--- 90-04-08 03:36:49    5     2154 vitals.1
  58.     ----ar--- 90-04-08 03:36:52   20     9781 vitals.c-orig
  59.     ----ar--- 90-04-08 03:36:46    5     2469 VITALS.MAN
  60.     Dirs:0    Files:10   Blocks:58    Bytes:26832   
  61.  
  62. You can find it in, I believe, comp.sources.misc, Volume 11, issue 66, per
  63. (from the "POSTER" file):
  64.  
  65. ``    Submitted-by: Alan Silverstein <hpda!hpfcla!hpfcdt!ajs>
  66.     Posting-number: Volume 11, Issue 66
  67.     Archive-name: vitals
  68.  
  69.     This program was developed by Hewlett-Packard and will be part of our
  70.     HP-UX product offering.  We have found it useful.  It is most useful
  71.     when most widely and commonly shared, so here it is.
  72.  
  73.     We have not tested it except on HP-UX, which is mainly AT&T-compatible.
  74.     However, it should be pretty portable.  Caveat emptor.  Oh, and the
  75.     usual disclaimer that I'm not really an official HP spokesperson.
  76.  
  77.     Alan Silverstein, Hewlett-Packard Systems Software Operation,
  78.     Fort Collins, Colorado; {ihnp4 | hplabs}!hpfcla!ajs; 303-229-3053
  79. ''
  80.  
  81. Ironically, it doesn't appear to have accompanied any version of HP-UX!  :-)
  82. I personally installed it on some of the machines at H-P Labs as a favor to
  83. some of my friends and colleagues who are employed by H-P.
  84.  
  85. Thad Floryan [ thad@btr.com, thad@cup.portal.com ]
  86.