Results 1 to 5 of 5

Thread: cannot get wget output to file

  1. #1
    Join Date
    Nov 2008
    Location
    Maine
    Beans
    1,126
    Distro
    Ubuntu 10.04 Lucid Lynx

    Question cannot get wget output to file

    Hi All I am using wget in spider mode to figure out what sites exist with certain names.

    Code:
    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
    Last edited by conradin; August 4th, 2012 at 03:41 AM. Reason: typo
    ~Conradin~

  2. #2
    Join Date
    Jan 2010
    Location
    Sydney, Australia
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: cannot get wget output to file

    Quote Originally Posted by conradin View Post
    Hi All I am using wget in spider mode to figure out what sites exist with certain names.

    Code:
    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 .

    Code:
    wget --spider --tries=1 www.4chan.org -o log.txt
    Last edited by codemaniac; August 4th, 2012 at 04:54 AM.
    “Progress is made by lazy men looking for easier ways to do things”
    — Robert A. Heinlein

  3. #3
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: cannot get wget output to file

    or with -a to append to the logfile

    The messages are normally reported to standard error.

  4. #4
    Join Date
    Feb 2009
    Beans
    1,469

    Re: cannot get wget output to file

    never mind, I swapped the meanings of -o and -O

  5. #5
    Join Date
    Nov 2008
    Location
    Maine
    Beans
    1,126
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: cannot get wget output to file

    Thank you Every one! I used wget --spider --tries=1 www.4chan.org -a load.log and got file out put. hurray!
    ~Conradin~

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •