[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] How to make a remote Digest?



On Thu, May 25, 2000 at 01:52:11PM -0500, J.O'Dell wrote:
> I am using an old 68K Mac in my lab to store research data files.  It is in
> a somewhat secure location, but (being paranoid) I want to make sure that
> no one has tampered with it (ie to change the users and groups data file or
> to store pirated MP3's !).  I reasoned that I could make MD5 digests of
> critical files and compare to previous digests.  The machine is reachable
> via FTP or HTTP (over a dialup connection through my ISP), so in my
> naivete, I ran the script below using open() to open a test HTML page, and,
> not surprisingly, it failed.  Several questions I hope someone can help me
> with (reference to pod, if available, and please pardon my ignorance):
> 
> -how to digest a remote file without first downloading to my local drive
> (my dialup connection is 28.8K, noisy rural phone lines)

Um, if you want to digest a remote file without downloading it first,
you'll have to get the remote machine to do the digest.


> -can open() be used on remote files via URL or IP address, or only on
> Appleshare volumes (any restrictions due to network topology(zones, ??)?)

No.   open() is only for opening files available from the file system.


> -if not open() what are best ways to access remote files via MacPerl (I am
> pretty sure Java can treat remote URL's like it treats local files, but
> prefer to work in Perl)

How about LWP::Simple?  Especially since you're already using that module
anyway.  The get() method is probably the one you want here.


Ronald

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org