Next: , Previous: Basic Startup Options, Up: Invoking



2.4 Logging and Input File Options

-o logfile
--output-file=logfile
Log all messages to logfile. The messages are normally reported to standard error.


-a logfile
--append-output=logfile
Append to logfile. This is the same as -o, only it appends to logfile instead of overwriting the old log file. If logfile does not exist, a new file is created.


-d
--debug
Turn on debug output, meaning various information important to the developers of Wget if it does not work properly. Your system administrator may have chosen to compile Wget without debug support, in which case -d will not work. Please note that compiling with debug support is always safe—Wget compiled with the debug support will not print any debug info unless requested with -d. See Reporting Bugs, for more information on how to use -d for sending bug reports.


-q
--quiet
Turn off Wget's output.


-v
--verbose
Turn on verbose output, with all the available data. The default output is verbose.
-nv
--non-verbose
Non-verbose output—turn off verbose without being completely quiet (use -q for that), which means that error messages and basic information still get printed.


-i file
--input-file=file
Read urls from file. If - is specified as file, urls are read from the standard input. (Use ./- to read from a file literally named -.)

If this function is used, no urls need be present on the command line. If there are urls both on the command line and in an input file, those on the command lines will be the first ones to be retrieved. The file need not be an html document (but no harm if it is)—it is enough if the urls are just listed sequentially.

However, if you specify --force-html, the document will be regarded as html. In that case you may have problems with relative links, which you can solve either by adding <base href="url"> to the documents or by specifying --base=url on the command line.


-F
--force-html
When input is read from a file, force it to be treated as an html file. This enables you to retrieve relative links from existing html files on your local disk, by adding <base href="url"> to html, or using the --base command-line option.


-B URL
--base=URL
When used in conjunction with -F, prepends URL to relative links in the file specified by -i.