Re: bash scripting: automatically download via ftp

Andrew Kelly <[email protected]>
Newsgroups gmane.linux.redhat.release.enigma
Organization Transparency International
Message-ID <[email protected]>

Tony Nugent wrote:
> 
> On Sat Mar 22 2003 at 20:08, Nguyen Vu Hung wrote:
> 
> > Hello all,
> >
> > How can I write a bash script that connect to a ftp
> > server, enter username and password( hardcoded in the
> > script), cd to /some/dir and get some files?
> 
> You run ftp with an ~/.netrc file that has an entry for the ftp
> server you want to connect to.

What about using wget? Man wget will tell you the whole
story, but it's basically wget URL.

Andrew
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.