No, sum and cksum are NOT portable.
The recommendation is to use m5sum.
Thanks to:
spd_at_gtc1.cps.unizar.es
sysadmin_at_astro.su.se
for a fast reply.
Original question:
------------------
Hi all,
In an attempt to investigate a possible network funny, I
came across the following oddity with sum and cksum
on different architecture machines.
ES40, TU64 V5.0a
sum 1bytefile 00010 1
cksum 1bytefile 3772115230 1
sum 97621364bytefile 47205 95334
cksum 97621364bytefile 824828288 97621364
SGI Octane IRIX 6.5.10
sum 1bytefile 10 1
cksum 1bytefile 3515105045 1
sum 97621364bytefile 61232 190667
cksum 97621364bytefile 1918009660 97621364
i586 RH Linux 7.0
sum 1bytefile 00010 1
cksum 1bytefile 3515105045 1
sum 97621364bytefile 47205 95334
cksum 97621364bytefile 1918009660 97621364
1bytefile and 97621364bytefile sit on a disk hosted
by the ES40, and are NFS-exported to the SGI and PC
Should the results of sum and/or cksum be architecture
independant? Which of these systems is right?
Cheers,
Terry
Terry Horsnell (tsh_at_mrc-lmb.cam.ac.uk)
I.T. Manager
Medical Research Council
Lab of Molecular Biology
Hills Road
CAMBRIDGE CB2 2QH
U.K.
Phone: +44 (0)1223 248011
Fax: +44 (0)1223 213556
----- End of forwarded message from Horsnell T. -----
Received on Thu Feb 15 2001 - 14:18:45 NZDT