Era Eriksson <reriksso@cc.helsinki.fi> writes: } On Tue, 27 Feb 1996 13:43:13 +0000, } px@fct.unl.pt (Joaquim Baptista [pxQuim]) wrote: } > At 10:26 27/2/96, Toni Zollikofer wrote: } >> Finally: if somebody has a better idea of how to mirror parts of a WWW } >> sites to a local machine please tell me. } > As the saying goes, use the right tool for the job... a perl swiss army } > knive is not a good substitute for a real ftp screwdriver :-) } } Hmm. Can't say I agree. Ditto here. It's a bad idea allowing ftp access to an http hierarchy, especially if you allow anonymous ftp. You're leaving a gaping security hole wide open if your Web server allows cgi's to run. That's a classic attack. Better make *damned* sure of your security before you do this. } I use a program called WebCopy. It runs on top if libwww so I don't } think it should be very hard to get it working on a Mac with } Mac-Libwww. Given the functionality of libwww, writing your own } shouldn't be infeasible, either. } Check out <URL:ftp://ftp.inf.utfsm.cl/pub/utfsm/perl/webcopy.tgz> } (yup, that's in Chile). } I believe the home for Mac-libwww should still be somewhere near } <ftp://mors.gsfc.nasa.gov/pub/MacPerl/libwww-perl-0.40/> but surely } somebody will correct me if this is up the creek. Close. That's the URL for the Unix distribution. The Mac version is at <ftp://mors.gsfc.nasa.gov/pub/MacPerl/mac_libwww/>. I have a script that meets my simple mirroring needs, lastm.pl (actually, now I use lastm5.pl and libwww-perl-5, but that's another story...). I mirrored about 30 files to my Mac and 4 to my Sun with it. It's also on mors: <ftp://mors.gsfc.nasa.gov/pub/MacPerl/Scripts/lastm.pl> It also requires libwww-perl-0.40. } } Hope this helps, } } /* era */ } } .obNag: You'd think computer people would have learned not to type a } space before a question mark? (Hint: Subject line.) } } -- } See <http://www.ling.helsinki.fi/~reriksso/> for mantra, disclaimer, etc. } } --- -------- Paul J. Schinder NASA Goddard Space Flight Center, Code 693, Greenbelt, MD 20771 USA schinder@pjstoaster.pg.md.us