On Wednesday 26 March 2003 7:18 am, Dhruba Bandopadhyay wrote:
> Hello
>
> Why do I get the following kind of output from wget when downloading for
> emerge processes instead of the more traditional kind of progress bar?
>
> Actual:
>    0K .......... .......... .......... ..........  10% 59.5K   0:06 50K
> .......... .......... .......... .......... 21% 88.0K   0:04
>   100K .......... .......... .......... .......... 32% 75.3K   0:04 150K
> .......... .......... .......... .......... 43% 86.7K   0:03 200K
> .......... .......... .......... .......... 53% 76.6K   0:02 250K
> .......... .......... .......... .......... 64% 80.1K   0:02 300K
> .......... .......... .......... .......... 75% 84.3K   0:01 350K
> .......... .......... .......... .......... 86% 77.8K
>   400K .......... .......... .......... .......... 96% 79.6K
>
> Expected:
> 72% [=========================>     ] 6,746,360    111.27K/s    ETA
> 00:22
>
> My emerge command is 'emerge -UDuvb world 2>&1 | tee -a
> /tmp/emerge.log'.
>
> Many thanks

Tee takes the input from stdin and sends it to stdout.  And wget outputs 
things line by line, but it clears the output first... giving it the effect 
of being a progress bar.  Thus tee is getting these line by line,  and 
reoutputting them without clearing the output first.


--
[EMAIL PROTECTED] mailing list

Reply via email to