how to find out dead links
Eugeneapolinary Ju
eugeneapolinary81 at yahoo.com
Sat Nov 14 11:16:27 UTC 2009
I don't want to use the stuff it downloads, I just want to get that text when it says 404 to a file.
$ wget -r -p -U Firefox "http://www.somedomain.com/" 2>&1 | grep 404
HTTP request sent, awaiting response... 404 Not Found
2009-11-14 12:14:26 ERROR 404: Not Found.
not the -O ...
--- On Sat, 11/14/09, Cameron Simpson <cs at zip.com.au> wrote:
> From: Cameron Simpson <cs at zip.com.au>
> Subject: Re: how to find out dead links
> To: "Community assistance, encouragement, and advice for using Fedora." <fedora-list at redhat.com>
> Date: Saturday, November 14, 2009, 8:18 PM
> On 14Nov2009 00:54, Eugeneapolinary
> Ju <eugeneapolinary81 at yahoo.com>
> wrote:
> | wget -r -p -U Firefox "http://www.somesite.com/" 2>&1 |
> grep 404 > 404.txt
> |
> | why come 404.txt is 0 Byte? how to put the STDOUT to a
> file with wget?
>
> Perhaps you should read "man wget". It says:
>
> -O file
> --output-document=file
> The documents
> will not be written to the appropriate files, but
> all will be
> concatenated together and written to file. If - is
> used as file,
> documents will be printed to standard output,
> disabling
> link conversion. (Use ./- to print to a file
> literally
> named -.)
>
> Cheers,
> --
> Cameron Simpson <cs at zip.com.au>
> DoD#743
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
> Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
>
More information about the fedora-list
mailing list