PDA

View Full Version : [SOLVED] cannot get wget output to file



conradin
August 4th, 2012, 03:11 AM
Hi All I am using wget in spider mode to figure out what sites exist with certain names.


wget --spider --tries=1 www.4chan.org >> log

as an example. That will run in the terminal and give screen output, but will not put anything in the log file.
Ive tried piping to tee and that was a fail too.
Can someone help me get the wget --spider output to go to a file?
I am in 12.04

codemaniac
August 4th, 2012, 04:51 AM
Hi All I am using wget in spider mode to figure out what sites exist with certain names.


wget --spider --tries=1 www.4chan.org >> log

as an example. That will run in the terminal and give screen output, but will not put anything in the log file.
Ive tried piping to tee and that was a fail too.
Can someone help me get the wget --spider output to go to a file?
I am in 12.04

specify a logfile with -o switch .


wget --spider --tries=1 www.4chan.org -o log.txt

sisco311
August 4th, 2012, 05:37 AM
or with -a to append to the logfile

The messages are normally reported to standard error. ;)

trent.josephsen
August 4th, 2012, 01:56 PM
never mind, I swapped the meanings of -o and -O

conradin
August 14th, 2012, 05:21 AM
Thank you Every one! I used wget --spider --tries=1 www.4chan.org -a load.log and got file out put. hurray!