Fetching an index of an FTP site using fetch...

2001-05-01 Thread Sean Chittenden

Does anyone have any ideas as far as a way in which it'd be
possible to fetch a directory index using fetch?  If I try to toss it
into mirror mode (-m|-M), it returns the following error:

fetch: fetch.out: Syntax error, command unrecognized

Anyone have any ideas?  The full command that I was trying is:

fetch -p -m ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/
fetch -m ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/
fetch ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/

No dice on any of them.  It seems like it should be possible
to get an INDEX file of sorts out of fetch, but aparently not.
::sigh:: -sc


PS I've looked through the source of fetch and libfetch, and
it seems like there's some stub code that hasn't been flushed out
completely.  Anyone know of any plans to finish this up?

/*
 * List a directory
 */
extern void warnx(char *, ...);
struct url_ent *
fetchListFTP(struct url *url, char *flags)
{
warnx(fetchListFTP(): not implemented);
return NULL;
}


-- 
Sean Chittenden

 PGP signature


Re: Fetching an index of an FTP site using fetch...

2001-05-01 Thread Dag-Erling Smorgrav

Sean Chittenden [EMAIL PROTECTED] writes:
   Does anyone have any ideas as far as a way in which it'd be
 possible to fetch a directory index using fetch?

No.  It's not intended for that purpose, though it would be a nice
addition.

   PS I've looked through the source of fetch and libfetch, and
 it seems like there's some stub code that hasn't been flushed out
 completely.  Anyone know of any plans to finish this up?

Feel free to send patches :)

DES
-- 
Dag-Erling Smorgrav - [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message