10

I'm trying to watch curl for live feedback on HTTP tweaks. However, when I execute the command, the output is garbled with some download stats. I've tried sending curl's stderr to /dev/null, to no avail.

When playing with curl on it's own, this output seems nowhere to be found.

What am I missing?

[edit]

the full command line I'm running is actually

watch --color -d "curl -I sandbox.dev | ccze", because I want colorized output. It seems that if I remove the ccze pipe things are a little better, altough the download stats are still there.

12

It seems curl does print the progress stats only when stdout is not a terminal. (e.g. curl -I sandbox.dev|cat would give you these results, too) You can disable these, however.

From the manpage

   -s/--silent
          Silent or quiet mode. Don't show progress meter or
          error messages. Makes Curl mute.
| improve this answer | |
  • 1
    guess I should of RTFM :) anyway, thank you! – Andrei Sep 14 '12 at 23:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.