FTP on Demand
You know it: If you want to load down a big file from a distant server (overseas perhaps), the maximum transfer rate can not be reached. If you are using ISDN it is extreme. But you have no ISDN Port to spend the telecom union your money, and you use the best operating system in the world :-) People who can access the Internet via a university and send some Unix commands to it, can do something.
provider:# nohup ftp -i ftp.leo.org & provider:# exit connection closed by foreign host. root:# _This takes only a few seconds, only one tariff unit is lost for a good purpose.
But you have to do some prework, because ftp is an interactive program, which needs a lot of information for its work (e.g. what to load). You can tell ftp how to be less interactive by giving the option "-i". But you need to tell ftp the information what to do, and this happens if you create a file .netrc at your provider. (The option "-n" tells ftp to ignore this file.)
If you want, for example, load down the Linux kernel 2.0.7 from the LEO.ORG server (more than 5 Megabytes!) the file .netrc could look like:
provider:~/.netrc
machine ftp.leo.org
login anonymous
password <my@email.address>
macdef init
lcd /usr/src
cd /pub/comp/os/linux/Linus/v2.0
bin
get linux-2.0.7.tar.gz
close
quit
So cou could create an entry for each server you want to connect. This file
must be stored in your directory at your provider before you call the
nohup ftp command. One hour later you can load down directly your
kernel. Great, isn't it?
So kann man sich für jeden Server einen Eintrag machen. Diese Datei
muß vor dem nohup ftp im Heimatverzeichnis beim Provider
abgelegt werden.
Eine Stunde später kann man sich den Kernel mit Höchstgeschwindigkeit
beim Provider abholen. Schön, gell?
... But this is not finished yet. Please wait...