Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: wget errors  (Read 2535 times)

0 Members and 1 Guest are viewing this topic.

yperron

    Topic Starter


    Rookie
    wget errors
    « on: October 31, 2007, 02:17:45 PM »
    I used wget to retrieve files from the web, but I dont want it to display crap in screen so I made it quiet.
    Is there a way to retrieve only the error and print it to screen?

    thanks
    yp
    yp

    ghostdog74



      Specialist

      Thanked: 27
      Re: wget errors
      « Reply #1 on: October 31, 2007, 07:09:50 PM »
      check the wget help section...if you can find the quiet option, you can find others that  may(or may not) do what you want. -nv and -o options are what i can think of...look at the man page again.

      yperron

        Topic Starter


        Rookie
        Re: wget errors
        « Reply #2 on: November 01, 2007, 08:56:13 AM »
        Thanks,

        in fact the -o options outputs the information to a file, but if -q quiet mode is activated at the same time, the file is empty. This look to do exactly the same as a file redirection (> wget.log). So I have to set -nv non-verbose option with the -o option and then seek the generated file for errors. I can live with that limitation but there surely are a variable set by wget (à la ERRORLEVEL) that can give me the error type/number right away, isnt-it?

        yp
        yp