On Mon, 08 Dec 2003, Doug Laidlaw <(E-Mail Removed)> wrote:
> I have created a .netrc file as follows:
> # Password is pulled from ~/.netrc
> # Create ~/.netrc in an editor using one line per server like this:
> machine home.vicnet.net.au user shlions password ******
> machine ftp.gnome.org user anonymous password ******
> # Then run: chmod 600 ~/.netrc
>
> The password is the same in each (needed for shlions; the other is
> anonymous.) From recollection, I did this for the benefit of ncftp.
> But when I run wget, I get error messages as follows:
>
> wget: /home/doug/.netrc:3: unknown token "user"
> wget: /home/doug/.netrc:3: unknown token "shlions"
> wget: /home/doug/.netrc:4: unknown token "user"
> wget: /home/doug/.netrc:4: unknown token "anonymous"
>
> If the syntax is right, wget should ignore those lines, because it is
> connecting to an entirely different host. Where have I gone wrong?
Maybe the syntax is not right. Search for .netrc in 'man ftp'. It shows
'login' instead of 'user' (maybe ncftp accepts either).
--
David Efflandt - All spam ignored
http://www.de-srv.com/