chksum was primarily written to offer to OpenVMS Users an exact equivalent tool than what already exists (or available as freeware) under Unix system. Moreover, chksum can be compiled on Unix system and provides the same functionality accross platform.
-b Computes the BSD checksum, computation with BUFSIZ blocks -r Computes the BSD checksum, computation with 1Kb blocks -s 512-byte blocks SYSV compatible -o 1Kb blocks SYSV compatible -c Cyclic Redundancy Check (CRC) checksum and number of bytes (according to IEEE Std 1003.2-1992 and X/Open CAE) -m Compute MD5 checksum of files according to the definition of MD5 in RFC 1321 from April 1992.
Default is -b
unless overwritten by the environment variable CHKSUM_OPTION. This variable
should be set to one of ``b'',``r'',``s'',``o'',``c'' or ``m''.
VMS/Unix Digital Unix Linux ------------------------------------------------ $ chksum -r % sum -r % sum -r $ chksum -o % sum -o % sum --sysv $ chksum -c % cksum % cksum
Options
section.
Currently, only the last version of a file can be checksum-ed under VMS OS.
VMS-Note : This return value will produce a VMS cli message which relevance is doubtfull AND missleading. We maintained the initial scheme for cross-platform portability reasons i.e. regardless of where you are running chksum, the value returned to the shell can be tested within a script.
-m
, -r
and
-c
options. I think that says it all ...
The CRC code has been taken from cksum written by Q. Frank Xia, and Copyright (C) 92, 1995-1999 Free Software Foundation, Inc.
The MD5 checksum has been implemented based on the routines provided in the GNU version of MD5.C, written by Written by Ulrich Drepper and Copyright (C) 1995, 1996 Free Software Foundation, Inc.
Current version ported to VMS by Jerome LAURET Copyright (c) 1999-2000 under the terms of the GNU GPL.
Please, send comments/suggestions/flame/blame/curses to me. They are all welcomed and will help other people in future by making this software better.