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