#!/usr/bin/perl

use strict;
use warnings;

my $result;
$result = system("cksum foo.c | cut -d ' ' -f2");
chomp $ckresult;
print "$ckresult\n";

Cksum returns an exit status of 0 if successful. This script gives out the exit status. How can I remove the exit status from the script.

Is there an alternate way to do it using unpack. Any help would be appreciated.

Thank You
Raghu

_________________________________________________________________
Crave some Miles Davis or Grateful Dead? Your old favorites are always playing on MSN Radio Plus. Trial month free! http://join.msn.com/?page=offers/premiumradio



-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to