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