in reply to md5 digest of remote file
Of course this presumes your .rhosts or hosts.equiv files are set up correctly.my $remote_file="remote_file"; my $openstring="/usr/bin/rexec $host -l $user cat $remote_file |"; # note the cat command, and the pipe at the end open FILE, $remote_file or die "Blerch: $!\n"; $md5=Digest::MD5->new(); while (<FILE>) { $md5->add($_); } close FILE; print $md5->b64digest; warn "Code is untested.";
Update: Fixed typo in code (replaced [ by { )
CU
Robartes-
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: md5
by traveler (Parson) on Mar 21, 2003 at 19:13 UTC | |
|
Re: Re: md5
by qball (Beadle) on Mar 21, 2003 at 19:24 UTC |