"John A Ogren" <[EMAIL PROTECTED]> writes:
> I'd like to use 'wget' to mirror a remote ftp directory, but it
> requires a username and password to access the server. I don't see
> any mention of command-line options for supplying this information
> for an FTP server, only for an HTTP server. Is this a bug, or a
> feature, or am I just missing something obvious?
There is a `.wgetrc' command for setting the password, which you can
use on the command line with `-e' (`--execute'). For example:
wget -e 'login=foo' -e 'passwd=bar' ftp://server/dir/file
The same can be achieved with:
wget ftp://foo:bar@server/dir/file
Or you can store the username/password in `.netrc'.