Download Howto

(How to download files non-interactively)

© (2004) Pablo Arés, pablo /at/ math.tifr.res.in



The problem

Browsing the Internet you find a file that you would like to read, but the download is too slow, and you want to go. So you need some utility that allows you to download the file while you are not present in the system (later on you will read it with your favourite browser). Below you will find several ways to do this.

wget

Suppose the file you want to get is called information.html in the directory research/grants in the website www.math.university.edu Then issue the following command:

   wget -q http://www.math.university.edu/research/grant/information.html &
You can safely log out of the system. The file will be save in your account, and later on you can read it (for example, with mozilla information.html).

curl

You can also issue the following command:

   curl -s http://www.math.university.edu/research/grant/information.html -o information.html &
Observe that you have to give a name of a file where you want to save the downloaded stuff (information.html in this case, the name after the -o option).

Automatic ftp

Check Question 5.6 in the FAQ of the School of Maths.