qball has asked for the wisdom of the Perl Monks concerning the following question:
The above doesn't work for me on linux. Any suggestions?use Digest::MD5; my $host = "host"; my $remote_file = "remote_file"; my $remote_file = "/usr/bin/rexec $host -l $user $remote_file"; open(FILE, $remote_file) or die "Can't open '$remote_file': $!"; binmode(FILE); $md5 = Digest::MD5->new; while (<FILE>) { $md5->add($_); } close(FILE); print $md5->b64digest, " $remote_file\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: md5
by robartes (Priest) on Mar 21, 2003 at 19:03 UTC | |
by traveler (Parson) on Mar 21, 2003 at 19:13 UTC | |
by qball (Beadle) on Mar 21, 2003 at 19:24 UTC | |
Re: md5
by Jenda (Abbot) on Mar 21, 2003 at 18:55 UTC | |
Re: md5
by hardburn (Abbot) on Mar 21, 2003 at 17:42 UTC | |
by robartes (Priest) on Mar 21, 2003 at 18:47 UTC | |
Re: md5
by dga (Hermit) on Mar 21, 2003 at 17:52 UTC |