No, actually md5sum command is not available on all the hosts, so I cant use that. I am comparing a file's checksum against a previously stored list (that contains both md5sum and cksum of the file). So, using md5sum for those servers that have it and cksum for those who dont have md5.