fetch / wget problem

Toomas Aas toomas.aas at raad.tartu.ee
Wed Dec 17 12:07:56 PST 2003


> From:          "Micheal Patterson" <micheal at tsgincorporated.com>
> Date:          Tue, 16 Dec 2003 12:59:03 -0600

> ----- Original Message ----- 
> From: "Toomas Aas" <toomas.aas at raad.tartu.ee>
> Sent: Tuesday, December 16, 2003 12:38 PM

> > I think that firewalls are configured correctly, because I can
> > successfully get the file manually, using the 'ftp' command.
> >
> > However, when I try this command:
> >
> > fetch ftp://user.name:password@server.mydomain.com/directory/file.ext
> >
> > I get an error message:
> >
> > I also tried wget, which succeeds to connect, but then, no matter what
> > I do, insists on using passive mode.
>
> You may be able to do this with a .netrc in the user folder that's running
> the script.

Thanks for the idea, perhaps it would work. But considering that the 
filename to be downloaded is not fixed but needs to be passed to the 
script as a parameter, I think that it's easier to use CURL (as I wrote 
yesterday). Otherwise I would need to dynamically modify the .netrc 
file.

--
Toomas Aas | toomas.aas at raad.tartu.ee | http://www.raad.tartu.ee/~toomas/
* Don't use no double negatives.



More information about the freebsd-questions mailing list