Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

up vote 5 down vote accepted

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.
share|improve this answer
    
guess I should of RTFM :) anyway, thank you! –  Andrei Sep 14 '12 at 23:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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