Re: how to find out dead links

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2009-11-14 at 00:54 -0800, Eugeneapolinary Ju wrote:
> wget -r -p -U Firefox "http://www.somesite.com/"; 2>&1 | grep 404 > 404.txt

If you direct the output with one > to a file, each write will overwrite
the prior one.  You want to use a double >> to keep adding lines of text
to the same file.

> why come 404.txt is 0 Byte? how to put the STDOUT to a file with wget?

Here, when I try it against a local webserver, and with the modification
I mentioned, I do get a file.  However, there's no useful information
with the error messages, just a note that there was an error.

e.g. HTTP request sent, awaiting response... 404 Not Found
     2009-11-15 17:51:32 ERROR 404: Not Found.

You'd need to do more to make it list addresses with the errors.

wget has options to do with logging, you might want to explore them.
See the man file.  But if you're doing this to check a website for
errors, there are some tools already set up for doing that.

-- 
[tim@localhost ~]$ uname -r
2.6.27.25-78.2.56.fc9.i686

Don't send private replies to my address, the mailbox is ignored.  I
read messages from the public lists.



-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux