wget: Logging and Input File Options

1 
1 2.4 Logging and Input File Options
1 ==================================
1 
1 ‘-o LOGFILE’
1 ‘--output-file=LOGFILE’
1      Log all messages to LOGFILE.  The messages are normally reported to
1      standard error.
1 
1 ‘-a LOGFILE’
1 ‘--append-output=LOGFILE’
1      Append to LOGFILE.  This is the same as ‘-o’, only it appends to
1      LOGFILE instead of overwriting the old log file.  If LOGFILE does
1      not exist, a new file is created.
1 
1 ‘-d’
1 ‘--debug’
1      Turn on debug output, meaning various information important to the
1      developers of Wget if it does not work properly.  Your system
1      administrator may have chosen to compile Wget without debug
1      support, in which case ‘-d’ will not work.  Please note that
1      compiling with debug support is always safe—Wget compiled with the
1      debug support will _not_ print any debug info unless requested with
1      ‘-d’.  ⇒Reporting Bugs, for more information on how to use
1      ‘-d’ for sending bug reports.
1 
1 ‘-q’
1 ‘--quiet’
1      Turn off Wget’s output.
1 
1 ‘-v’
1 ‘--verbose’
1      Turn on verbose output, with all the available data.  The default
1      output is verbose.
1 
1 ‘-nv’
1 ‘--no-verbose’
1      Turn off verbose without being completely quiet (use ‘-q’ for
1      that), which means that error messages and basic information still
1      get printed.
1 
1 ‘--report-speed=TYPE’
1      Output bandwidth as TYPE.  The only accepted value is ‘bits’.
1 
1 ‘-i FILE’
1 ‘--input-file=FILE’
1      Read URLs from a local or external FILE.  If ‘-’ is specified as
1      FILE, URLs are read from the standard input.  (Use ‘./-’ to read
1      from a file literally named ‘-’.)
1 
1      If this function is used, no URLs need be present on the command
1      line.  If there are URLs both on the command line and in an input
1      file, those on the command lines will be the first ones to be
1      retrieved.  If ‘--force-html’ is not specified, then FILE should
1      consist of a series of URLs, one per line.
1 
1      However, if you specify ‘--force-html’, the document will be
1      regarded as ‘html’.  In that case you may have problems with
1      relative links, which you can solve either by adding ‘<base
1      href="URL">’ to the documents or by specifying ‘--base=URL’ on the
1      command line.
1 
1      If the FILE is an external one, the document will be automatically
1      treated as ‘html’ if the Content-Type matches ‘text/html’.
1      Furthermore, the FILE’s location will be implicitly used as base
1      href if none was specified.
1 
1 ‘--input-metalink=FILE’
1      Downloads files covered in local Metalink FILE.  Metalink version 3
1      and 4 are supported.
1 
1 ‘--keep-badhash’
1      Keeps downloaded Metalink’s files with a bad hash.  It appends
1      .badhash to the name of Metalink’s files which have a checksum
1      mismatch, except without overwriting existing files.
1 
1 ‘--metalink-over-http’
1      Issues HTTP HEAD request instead of GET and extracts Metalink
1      metadata from response headers.  Then it switches to Metalink
1      download.  If no valid Metalink metadata is found, it falls back to
1      ordinary HTTP download.  Enables ‘Content-Type:
1      application/metalink4+xml’ files download/processing.
1 
1 ‘--metalink-index=NUMBER’
1      Set the Metalink ‘application/metalink4+xml’ metaurl ordinal
1      NUMBER. From 1 to the total number of “application/metalink4+xml”
1      available.  Specify 0 or ‘inf’ to choose the first good one.
1      Metaurls, such as those from a ‘--metalink-over-http’, may have
1      been sorted by priority key’s value; keep this in mind to choose
1      the right NUMBER.
1 
1 ‘--preferred-location’
1      Set preferred location for Metalink resources.  This has effect if
1      multiple resources with same priority are available.
1 
1 ‘--xattr’
1      Enable use of file system’s extended attributes to save the
1      original URL and the Referer HTTP header value if used.
1 
1      Be aware that the URL might contain private information like access
1      tokens or credentials.
1 
1 ‘-F’
1 ‘--force-html’
1      When input is read from a file, force it to be treated as an HTML
1      file.  This enables you to retrieve relative links from existing
1      HTML files on your local disk, by adding ‘<base href="URL">’ to
1      HTML, or using the ‘--base’ command-line option.
1 
1 ‘-B URL’
1 ‘--base=URL’
1      Resolves relative links using URL as the point of reference, when
1      reading links from an HTML file specified via the
1      ‘-i’/‘--input-file’ option (together with ‘--force-html’, or when
1      the input file was fetched remotely from a server describing it as
1      HTML).  This is equivalent to the presence of a ‘BASE’ tag in the
1      HTML input file, with URL as the value for the ‘href’ attribute.
1 
1      For instance, if you specify ‘http://foo/bar/a.html’ for URL, and
1      Wget reads ‘../baz/b.html’ from the input file, it would be
1      resolved to ‘http://foo/baz/b.html’.
1 
1 ‘--config=FILE’
1      Specify the location of a startup file you wish to use instead of
1      the default one(s).  Use –no-config to disable reading of config
1      files.  If both –config and –no-config are given, –no-config is
1      ignored.
1 
1 ‘--rejected-log=LOGFILE’
1      Logs all URL rejections to LOGFILE as comma separated values.  The
1      values include the reason of rejection, the URL and the parent URL
1      it was found in.
1