The Archives

  • 24.Apr.09
    Retrieving files from a URL (the BSD way) shell | fernape | (3)
    $fetch URL This ancient command (it appeared first in FreeBSD 2.1.5) retrieves files from URLs. It is simple and efficient. All its features are encapsulated in the libfetch library which can be accesed from a C program using a predefined API (man 3 fetch). Example: $fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/ISO-IMAGES/7.1/7.1-RELEASE-amd64-bootonly.iso