On Fri, 12 Mar 2004, Mark Taylor wrote:
> On Thu, 11 Mar 2004, Alasdair Allan wrote:
>
> > Attached! I'm a bit unsure why Alan used some Java to retrieve the file,
> > looking at his URLFetcher class it doesn't seem to do any deep magic. I'm
> > presuming this call can be removed and replaced with wget (or something
> > more standard) in the URL2NDF CONVERT script.
>
> I imagine he used java just because it's a very easy way to get a
> stream of bytes from a URL. I wouldn't say wget was more standard
> (unlike java it's not guaranteed to be present on a stardev system)
> though if we're going to include this functionality in NDF/CONVERT
> then as you imply it might make sense to put the wget functionality
> and source code (or similar) into one of those packages themselves
> rather than having a java callout.
Or
AC_PATH_PROG(WGET, wget)
AC_PATH_PROG(CURL, curl)
AC_PATH_PROG(LYNX, lynx)
substituted into...
if test -n "@WGET@"; then
...
elif test -n "@CURL@"; then
...
elif test -n "@LYNX@"; then
...
else
...
fi
in some configured get-a-url-script
Norman
--
---------------------------------------------------------------------------
Norman Gray http://www.astro.gla.ac.uk/users/norman/
Physics and Astronomy, University of Glasgow, UK [log in to unmask]
|